Finished the funtion that writes out the configuration file. Next step is to check if the file exists and import the varaibles for use in the functions