Added check_config function

Added in a function that ensures all config variables exist before
allowing the script to run. If something doesnt exist, it echo's it to
the terminal and adds that option onto the end of the file, and then
cancels the running of the script