Changed speed of level change

Added variables to store previously working values when changing between
light levels. During the change the PWM is set to the last working value
for that level. This is currently untested.