Fix some bugs

Fix: 
 -encoding problems
 -markov chain with given starting word not picking from all possible choices
 -ignore case with given starting word