Now the program initializes some files and can distinguish between the first run and the other runs.