Fix flat

This applies a couple of additional fixes to the flat function in ccdproc including add min_value which closes #55 and adding tests of the ccdproc.flat task which closes #33