Added code for driving LEDs, added some comments