Fixing the stroke with by introducing a dependency of the offset for the outset of the direction of the line.
Added a simple mechanism to skip points that are double.