Added documentation in parse_config_file, cleaned up retrieve_config.