Add API documentation to README.md