added comments to app.py