Added appendChild method, removeChild now returns the removed child