Fix API examples
Merge pull request #424 from bradh/patch-2

Fix API examples