refactored relational validation
Merge pull request #13 from mdrillin/refactorRelational

refactored relational validation