removed test code and added documentation for comparison operators