closes #25; also fix bug in writing trees as newick