Sflat

changes in saltflat to check for invalid values, corrects error in writing out fits file where the flux was written out in the error column, and add a surface fitting algorithm.