refactored some of the code in otu + phylogeny commands