Trim whitespace, fix a few typos in examples
Merge pull request #495 from ivuk/fix-typo

Trim whitespace, fix a few typos in examples