Faster, more flexible segmentHighways

Also adds related doc fix and tests