Config file rewrite finished
Check how to use temp files
Need to finish start up and shut down functions