fix bugs in configuration files
Merge pull request #129 from tahuang1991/master

update script and configuration files