completed token function
added tf function to calc term frequencies w/in each doc
rewrote tf() as count() function to get doc counts