Put the code into an array instead of directly into the code property.
Adds file type and file name to the code object.
Updates merging to match the updates to the new doc set strcuture. Also adds non matching doc sets where as before they were discarded.
Fixes duplicate items when merging.