Feature complete

Code cleanup and documentation to go