Added comments to the GUI class inorder to clarify the parts of it