Config class

Creating the pull request so that I can comment some lines ;)
I'm just following the existing code, this can be addressed in a future PR if necessary