Add fluent interface to output
Add JSON format API, step 2: Various formats, documentation, tests
Reduce number of writes