Adding a whole string cost function.
Hopefully sticking the Markov model in in the right place
Adding some tests for the Markov model