Optimize: log, config file, scripts

1.optimize log printing
2.add scripts for running the testing program
3.update the documents