added some more comments to functions.py