Better PEP8 conformance and documented a function.