Changed format of if else statements
Changed format of case

removed display from enum CommandType
Added variable year to the dateExists() method