YAML parsing function

Added function for reading yaml in bash