Bugfixes on I/O stuff. Merging appears to work. There is something wrong with getNextWord() that causes it to not set currentWord (nextWord stays as ). Maybe it's the probabilities?