comments and a bug fix

commented code and fixed a possible error where the blinds would
immediately open after closing the first time, if the blinds themselves
change the light level hitting the sensor.