Fixed process_directory to leave off the trailing /r/n.
Merge pull request #4 from roryk/master

Most of the parsing of the data directory is complete.