Parameterizing the config directory
Added the config dir parameter