edited phylogenetic classification code to produce nhx and legend