Creates GUI and runs the program.