Created a WorkFile Factory
WorkFileV1 structure changed
Minor changes due to the new workfile factory