Simplified the api and added usage to README.md