Added better debugging and dynamic lightness

The lightness still needs fixing...