Added GUI 'q' to quit functionality