Added add/remove child and root methods to Entity class.