Removed apparently stray line, and updated comments and docstrings