Use named tuple for the configuration.

@ClementMF How do you feel about this way of using named tuple for configuration?
I think it makes the code a bit easier to understand.