added preserving of word sequence on disk. this prevents repeat words even when the application is closed.