Merge pull request #4 from jebaum/master

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