Updated README.md, added API documentation