Added id check in equal method of Entity class.
Improved knowsTheEntity method in Knowledge class.
Minor updates.