wasInsertedIntoDOM and willBeRemovedFromDOM functions added to README