added a trainingmode and a mergeUtil for storagefiles