updated to final version so it doesn't suck
finished version. only error is cannot prevent duplicated words. Not sure how to fix...