Allow passing in a string to parseFile

Closes #1.

Let me know if I did the jsdoc right; not used to it.