Fix coding standards issue in examples directory.

This fixes all the coding standards issues in the /examples directory flagged by Coder Sniffer along with anything related that I noticed while I was in there. It's almost exclusively formatting, whitespace changes, and typo corrections.