Output formatting

Fixes #9.