Decent progress

The program runs all the way through, and writes a file like it should.
However; the scaling still doesn't work, and so the fluxes are being
scaled with 'nan', and the array gets sort of overwritten. But if the
scaling gets fixed, everything should work perfectly.