add API examples to README.md