Added state flags to FITS header and fixed types