Update README.md example for latest API changes.

I had to modify the example in the `README.md` file a bit to get it to work. (Not sure whether this is an 'interesting' change at the moment, but thought I'd let you know, just in case...)