new gui  for second iteration

the functionality of generation of envelope curves has been automatised
and the corresponding gui has been added