added debug option to makefile