Add function Insert_If_New
Store Idrefs in a unique list to optim final check
Update doc on checkout of HEAD of branch