Fixed bugs and added initial preprocessing.

I still need to add a file of stop words to the app and retrieve the
list of stop words from there. Currently I have a small array of stop
words.