Some improvements to jtree and regiongraph and started work on regiongraph unit tests