Add -f/--config-file flag for loading YAML configs from local or remote sources. Fix error handling to return unmatched errors.