Change interface of TreeFormatter and add indented formatting.