Implement api and update README.md