Fully implemented difference detection with keyword matching and snippet collecting.