Cleans the code and adds new documentation.
Passed all tests using the new version of test suite.