Fixed some example snippets
Merge pull request #859 from KevWright/master

Fixed some example snippets