made changes to generate code

Normalization used before saving in generateData script