added 404
added debug option to makefile