upd

change encoding of tree.h and add some comments