fixed serializeable interface, used it on light sensor eaxample. need to finish up serialize method and test in main