Changed the tree drawing code to use totals instead of maximums, which fixes a bug involving overlapping nodes (1+1+1's tree is now displayed correctly).