fixed bug in updateVector, separated out updateDimensionDocumentCountForTokens so users can call it separately as necessary