Validity Rate for documents

First and not very elegant implementation of the "validity rate" funcion
for individual fields of a documents or avarage for all of the fields.