Converted comments to docstrings where applicable