Added authkey and some configuration file handling