Added changes to tree.go and added messages file
some changes