finished serialization of LightSensor, will implement each other class in a bit. Also added a test program for json