Add .txt output format, closes #7.