Fix some issues with regulation tree generation. Start on tree generation for appendix/supplement