Add checks for cfg file. Add option to create folder structure if the v alues from cfg file are wrong