Fixed bug in dataset rescaling for gain recalculation code path.
Fixed code version info in CIF output file