Fix command line application

use distributor in DocumentValidator

fix #148