Small edits to syntax to comply with PEP 8, Revisions to comments to add clarity.