Quality and environmental management system