Config class + Error messages refactoring