Added reset function, changed quit to ask for confirmation