Threshold, power button and clean up

I added a lower threshold for the dimming, and turning off the light is
now done on a button press.