option to output to multiple txt files; Closes #28