yitaoz+eshieh Fixed stuff and added another strategy of removing duplicate words