Merge pull request #1 from nbluis/patch-1

Adjusting code sample to the new api
Release 0.2.1.
Merge remote-tracking branch 'original/master'