add copyDirRecursively function. add regeneratePupilData function. copy user profile dir to the result dir before doing the curve gazing recorder.