add documentation for validation (#77)