@Override
	public void generateDataset( String datasetFile, List<SimpleFile> simpleFiles ) {
		
		List<SnapshotFile> files = convertToSnapshotFiles(simpleFiles);
		List<SnapshotFile> initialFiles = trainFiles(files);
		
		try {
			FileWriter fstream = new FileWriter(datasetFile);
			BufferedWriter out = new BufferedWriter(fstream);
			saveChanges(out, initialFiles);
			saveChanges(out, files);
			
			for (int i=0; i < this.numSnapshots; i++) {
				nextSnapshot(files);
				saveChanges(out, files);
			}
			
			out.close();
			fstream.close();
			System.out.println(this.totalBytes);
		} catch (IOException e) {
			logger.error(e);
		}
		
	}