optimized some codes
modified makefile for building debug.c