Fix start_iteration to actually use the callback passed to it
Outputting the tree seems to work now

This requires more tests, but the first test I converted is passing, which is
a good sign.