add clog.c clog.h Makefile