README: fix examples to adhere to current API
Merge pull request #2 from dcousens/patch-1

README: fix examples to adhere to current API