switched the command options from string to enum

used switch in place of if, else if, etc