fix bugs and delete log file
ignore *.log file