cleans the code, adds comments, removes code that simply existed to aid debugging