added some integrity checks when loading a config file, now throws an exception if the file is missing or the json decode is empty (json parse error)