Added keyword processing and document difference detection.