fix some bugs in log.h and start to file_read operation