completed comments for MainFrame