Allow user to specify their own tree_id, e.g. a Foreignkey

Fixes #189
Update docs :)