Write output
Add types to output
Merge branch 'master' of https://github.com/kbase/metrics