Some improvements in tree printing + task 4.5 finished.