Add some comment in Makefile
Imporve code style and some error messages