totally re-wrote tf-idf and now it works and is much simpler, still need to deprecate old stuff and work through using the examples; change metadoc to document, etc