more simplification - still no complete understanding
leds working and interface clean