Change reporters to formatters, add format command line option. Also added
tests for compact format.
Fix merge conflict