uniformize logs
added read-only to the example
Refactored configuration into a class