Figured out how to iterate through directory entries and read in only cpp files