cosmo config hdr

function [config, fn] = cosmo_config(fn, config)