Program and text file generation
