README: Improve api docs

* document writeJson and tmpDir
* Add TravisCI status badge