Refactoring the shell script, added comments to the config.dist file.