Perform LDA on words when only one document is given. Closes #20

LDA on words is performed when we get only one document. This is still relying on the python backend that should soon be re-implemented in java. This is a temporary solution.