Added funtion to yamlReader