added indented tree printing to out file