ztree  update, fixes and redo with MIT code

Go back to older more freely licensed code, and other minor fixes