comments changed to docstrings