Added to contrib the library of tree
bugfixes
Added the init method