First revision of config parser