Collecting statistics
Updated statistics class. Stats written to file. TrafficLight modified.