Changed the names of the equal comparison functions to be more correct.
Formatted code.