format
add Changes
Use a Set instead of a list for docs to compute; add docs created on the fly to the set of elements to compute