Added printing of apikey and exit on first run