Fixup readFile

 - fixed output related typos
 - added close function
Merge pull request #7 from Raynos/es5-read-file

Fixup readFile