Basic writing of config file