added next gen sumo code
gyro working
updated next_gen and range_test (added averaging)