Working printHumanReadable function for trees