revised PLSA.java