Update loop.py

Added additional comments to help the user better understand the complexities of Eric's code