Fixed incorrect index of document ID. (And fixed annoying compilation error)
Made the LSI model script less memory consuming by using a fake dictionary. May or may not work.