Resolved json payload issue; added tests; updated README.md