Add functions to create, read and write config file, and a simple test file