Fixed GWire intialization null reference bug and tentatively completed CalculatePathSegments...() method.