Replaced comments by docstrings.