Raise exceptions when given an invalid configuration
Read the configuration file upon import