Clean checking system and add valcheck (check with Valgrind)