API example fix and typo

Hi,

Just a few small changes. Thanks for a great library!

- Kristoffer