Update API in README.md examples