Reads yaml file