Added Curly braces

for methods executeCommand and determineCommandType
Removed showToUser