Added support to handle malformed JSON

* Updated README
* Fixes #7 and #11