Added API documentation to README.md