Some work on reading files and outputting to a txt doc