Refactoring of the configuration Repository

Refactoring, extracted the configuration repository and integrated to the library