updates flux code to use history files. It also checks to see if PV file was calculated using the smae kind of output, else skips that