Configuration file is now managed in a more clean manner
Factorized some code ind config.c