Added beginnings to a formatter

todo:
 - parser is broken. stdout isnt sent in chunks, so have to create objects serially