add tot_length to branchsegments.csv