Allow passing in a string to parseFile

Closes #1.
Merge pull request #2 from domenic/allow-string

Allow passing in a string to parseFile