mostly finished implementing chat formatter

needs testing and handling of special rare cases
added sample of raw chat to docs
added a few quick TODOs
updated config layout doc and template