Code re-writen: Segmentation based a single file

Segmentation based on parameter in column GroupID