Makefile, first compilation and bug fix