Added comments to MainFrame.java