Ajout debug + close log + qques corrections