Changed around some small errors that would propogate through the turning angle calculation code