Added a check function

I've added a check function so the code won't run unless the .conf file passes the check. Its a simple check right now but I'm working on making it more complete. I also added the option to run the code with '-c' which will only run a check on the .conf file and give information on whether it passed or not.