read_input_files function

Read input files into memory