Config class

Creating the pull request so that I can comment some lines ;)
That would mean changing quite a few lines... you're OK with that?