Cleaned up make_config_file and added some comments to explain what is going on