Add END_SEGMENT flag and associated requirement. Fixes #350.
Merge pull request #374 from jpinner/end_segment

Add END_SEGMENT flag and associated requirement. Fixes #350.