added documentation for digit validator