fixing print_tree bug
minor changes to documentation