cleaned up the industrial code and commented