amlioration tests et code plus claire
reformat for sendinf a file
refractoring and commenting