Added error output for invalid commands.