Fixed small details so that the code is aligned with PEP8
Finished writing the fct that integrates the header into the metadata