More documentation
Removed obsolete functions
Ran the tests