a code writing binary tables to fits files added