progress.remaining is never negative
Rename diff option accumulated
Renamed patch document and updatedDocument to before and after. Added new integration test.