Revision IV

Fixed the error with the JOptionPane by making the frame invisible when
you were prompted for input, several other minor fixes.