Add docstrings to functions which otherwise look like they shouldn't exist