added comments to pages.py