Added Gui, so now the program should run the same from an IDE as from a jar file.