clean up formatting of examples

Julien, I made some minor  (mainly whitespace) changes to the examples.