Inclusion of KC configuration

can be replaced with the fancy 'nil coalescing operator' :
```
let realm = realm ?? defaulRealmName
```