Minor changes.

Aadded a comment about why hashCode() is useful (so that it was not removed).

Some unused imports removed in order to get rid of warnings.