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

Fixed some example snippets