fixed porter-stemmer to allow reuse of objects
made formulas uniform