refactor post peer review, format output, add tests