improve log format and makefile