Refactored Tree to be more simple
Added add instance field and some other stuff...idr