Manage different trees

Hi Claus,

here my pull request for the functionallity to handle different trees.

Cheers und liebe gruesse nach Berlin. 

Eike