Added progress indication to the diff model
Refactored using defrecord macro
Added comment