revised stem code

fixed multiple word stemming, cleaner code