Merge pull request #3 from roryk/master

Parsing header and data into two pieces
Fixed process_directory to leave off the trailing /r/n.