Documentation finished

Finished the documentation for the project on this step, and also
cleaned up some of the code.