Added flexibility to function for multiple LEDs

Commented