Updated README so that it reflects the state of the code.

The code in the README doesn't reflect the current API for the library. I updated the README to include a code sample that works, which should make it easier to get started.