WatchManager and Datatree full functionality code added (haven't checked the code yet)