Uses the correct linefeed for Unix/Windows
Merged in Sintaxi's changes
Fix JSON
Returns errors on missing file
Merge pull request #3 from silentrob/err

Adds a check for error coming from readFile