Added stemming and creation of term database