cleaning up code and removing reference materials