Bug fixes for script after debugging
Sample configuration file