Updating code with documentation.  This is phase 1 of the documentation updates
Removed code which was no longer in use