added debug option in makefile
fix issue 24