Adds comments and docstrings