Cleanup. Renamed and modified railChange to follow conventions. Added test for trafficLights.