Changed comments to docstrings.
Replaced tabs w/spaces, removed trailing whitespace, fixed docstrings.