Rewrote the tree generation

Still something to do: Cocoa beans!