Added comments to gui.py