refactor fix up doc clustering, add in initial factorie processing, now needs more memory for both factorie and vector resources