Handling of configuration file.
Refactorings.
Better error messages.