Added while loop to check for GUI events
Added stub functions GUI and Quit