modify .gitignore file
improve code for test & log.