Updated equals() to not crash on null references
Finished, but no testing done for the iterator.