Fix encing problems and markov chain with given starting word not picking from all possible choices
Merge pull request #2 from culka/master

Fix some bugs