Refactor tree stuff and start trying to construct sentences from read rules.