Fixed comments and added minor speedup.

Removed obsolete methods.
Changed comments according to PEP 257 Docstring Conventions.