Created script to generate config file
Modified file to call config generator file and fix permissions on temporary folder
Fixed control file