added yaml dependecies
changed regex to YAML parser