rescaleI function

Performs the rescale for all the variables in an input file.