Added option for automated bias and flat frame selection in ratdisp_calib().  Additional improvements detailed in comments.