Added documentation for the API in the README.md.