chart1/MyFrame renamed MainFrame, minor cleanup.