Add some docstrings/comments.