added lightcontrol.cpp