converted comments to docstrings