Changed file creation algorithm and now introduced cfg.newFile()