fixed up the file-checking. I was using 'assert' and should have used raise.

Made the digitization routine clearer.
We store the scaling required to get back to floats