structure for merge
inital structure for references.
first creator functions for references
reference funcs and oid methods