Making PEP-8 compliant and adding/updating docstrings.