Refactoring YAML parser to use direct object input/output (rather than
home-rolled parser) and do writes. Lots of help from @pcsouza