Added GUI to the program. Command line interaction no longer needed