src: add YAML support for output file.
gui: add YAML output file support.