prettify record.json output, refactor, colors!
more refactor, done most non-error-related todos