added comments to GUI to make code more readable