Add a check if the user has filled out the config file
Fix issue where code would not compile because of misnamed var