Add more comments to helpers.py