Fixed bug where trees.out wouldn't be generated.