Fixed removeCommands() with no arguments removes all commands. Code style fixes