writeAncestors function

Write a tree to file with ancestral states and (optionally) CIs at nodes