Made some changed to the config

begining to use checkCOnfig() to see if the config excists and if it
doesn't we make it with the default