first pass at printing to the files
adds output file