Finished cleaning up code and documentation.