chattr_defaults_save function

Saves the current defaults in a yaml file that is compatible with the config package