Fix indentation, missing import
More fixes to example code
Merge pull request #117 from davisagli/master

Minor edits to extending docs