added more comments and methods

comments in mainframe/guiactions. and methods in guiactions.