Added debug options to makefile and c code