add Compare validator
Fix test
Modify to generic compare validator
Fix documentation for Compare validator