adding xml metadata importation and fixing attr_accesible in models