Fixed tokenize, now returns a list unless simplify=TRUE.

Fixed a bug in sumamry.corpus which crashed if ndoc=1.

Fixed the namespace error for vector.