improve commenting and strip out WS to get tests passing
bit of refactoring within Formatter, drawing out transform/format split
fix DOC_COMMENT printing, more cleanup/comments, strip noise from tests