Added docs and tests for the equals method.
Added the, extremely efficient, equals method.