Added api documentation to readme.md