Updated mainFrame Class

Updated mainFrame.java with more descriptive names and event handlers.