Updated API and examples in README.md