Clean up code.  Use self when possible. Use 'is' comparison instead of == for object reference checks.

Added usage example in doc comments.