added corpora and changed filepath function to universal method