Ignore local temporary directory.
Log to stderr, so scored output can be redirected.
Use Java collections for stub-consistent output order.
Add docstrings.
Import CosineVectorSimilarity, as assignment mentions it.