more error handling

added a check to see if file exists, if the config file is okay and error handling if the port specified (in the config file) is already in use.