example code cleanup

removed an unmatched bracket and cleaned up the formatting a bit.
Merge pull request #2 from codr/patch-1

example code cleanup