- implemented trees model API
- more tests
- more sanity checking