Creates Bytes method to serialize the configuration into YAML

Create Bytes to serialize the configuration into YAML
Could it be something like this?

```
mut.RLock()
defer mut.RUnlock)
return yaml.Marshal(configs)
```