Update docs to work with latest changes.

Not sure if you accept PRs, but I had trouble running the example code in the README. It doesn't appear to work with the latest version of the client. Here is an updated README with a working example. Thanks!