allow multiline output

Closes #31