Added input and output FITS routines