Add support to write to yaml files and more prompt option params for global