added creation of document vectors at beginning of vector mode