Small edits to syntax to comply with PEP 8, revisions to comments to make them clearer and more consistent