Make internal functions static; expand comments.
Correct def label.
Add vectorize to Makefile.
Adds vectorizing of documents.