mergegui - trace flattening option

mergegui - added option to select trace from which flattening is
performed