write and add paths and tot_stem_m data to branchsegments. Remove previous iterations of sum_mass.