now reads in files and outputs to screen