Genericized StringChain to MarkovChain
Other misc fixes