clean up code base to be simpler to follow and remove some duplicate code
more cleanup of the code base
move things around for more cleanup
make formatting name and comments functions for better code reuse
clean up more code and remove the formatLine.  This makes base format more generically that can be used by both console and log render and then html render can override