add print_newick function, doesn't seem to improve performance though...
debug for newick tree format string
tidy up code
Merge branch 'master' into doc