added DEBUG macro
changed add app log module to Makefile, but disabled by default