revert changes to dependencies

because for now I've copied Liam's function in RWTY
copy Liams function

I commented out the section that checks for rooted trees, since we
should do this when we load in the trees in the first, place. So it's a
waste of time to repeat it.