adds failure error handling to yaml parsing
Merge pull request #2 from boxuk/error_handling

adds failure error handling to yaml parsing