modify file read code to fit multi file reading.
test multi file processing