Added a quit on q press clause. Also fixed some funny indentation errors (ie tabs).