initial commit of genData.R