added API documentation

updated readme.md, adding API documentation.