Updated Makefile.
Added DEBUG, DFLAGS and RFLAGS to Makefile to specific builds.
Added logger.