Adding comments and a check for small segments

Very small segments can cause problems with the wind order, so we
disregard them. If a segment's length is smaller than the margin, then
the neighboring vertices should be close enough together to be combined
successfully.