Fixed BZERO problems.
Updated mode algorithm to handle float images. Added apply dark and make dark. Renamed run_flatten to run_applyflat.