updated gui
set costs for end segments leaving the block to zero
added program option to disable the extraction of branches