Added all the necessary code for generating the ENA XML files