writing a function to run plsa multiple times for same study.
[DEBUGGING]. ALso renamed all use of variable 'file' or 'filename'