doxygenize
typos, cleanup and fixes