changed delegatetree class and now printing in a "pretty" format