set_command() function added: led on/off implemented