Fixed issues with MainFrame.java

Closes #2, closes #3, closes #5, closes #6, closes #7, closes #9, closes #11, closes #13, closes #14;