Added operator == and fixed others