added operator ==, fixed some bugs
tests added
tests added