methods and comments

added methods/comments to GuiActions and added comments to MainFrame.