[AdgMarker] Improved segment management
[AdgMarker] Improved segment management

Provided guard against invalid values in properties. Furthermore,
improved consistency of segment management and described in the
documentation: "trail" and "n-segment" properties are strictly related
and this has been highlighted.

ntd/adg,ntd/adg