add output method and clean up some code
Merge branch 'master' of https://github.com/developer-foundry/cohortone