refactoring warning code + new warnings

Warning : 
 - the Makefile doesn't work yet
 - the manual hasn't been completed yet