Implemented isCommand()
Implemented command dispatch switch statement