newick parsing - major revision from new2fy