Fixed bug for files with no newlines.
Merge pull request #83 from nkindlon/master

Fixed bug for files with no newlines.