added code that stores each file associated in all diffs