Fixed code examples to reflect API change
Merge pull request #3 from olmeca/master

Fixed code examples to reflect API change