added metadata to fits encoding
tested fits metadata in encoder and decoder