- Declare some variables used in the case statement which got missed the first time around.
- correct capitalization in an error message.