Code to parse out and read files