better node insertion, doc restore
added node deletion