added error checking before loading config, display error message if
ocnfig not present.