Fixup examples

Lots of little fixes:
 * tabs -> spaces
 * remove trailing whitespace
 * convert some code comments to docstrings
 * remove extra newlines on docstrings
 * remove references to .lfe in script example