added text directory option
Merge pull request #4 from jebaum/master

add option to use separate directory for .txt files
let test test for empty strings