Refactored
refactoring stemmer
adding functional test