added stemmer and alignment algorithms