Throw error for invalid config file. Closes #81