simplified integer parsing
clarified int parsing
changed how invalid input is treated