exit command works and program loops. Also fixed make file