Some comments and docstrings