Converted function comments to docstrings