Improved cin statements abilty to handle bad inputs.