added 'Q' as an alternative to quit the program