Change README.md and fix a bug in log.h