Documentation for model validations

Documentation for pull request #640