implemented all the preprocessing functions Nipun and I discussed
that I should implement when we talked earlier this afternoon on Hangout.