Add loadFile API and tests.
update docs
Fix lint issues.
Remove indirection of loadFile function.
Merge pull request #7 from totherik/loadFile

Add `loadFile` API