Fix API examples
Merge pull request #423 from bradh/patch-1

Fix API examples