Example doc fixups

Some small fixes to the examples that correct some errors I noticed.

cc @garnaat @carljparker