Filled out docstrings in utils.py