Altered MainFrame with comments