Made printing nicer.
Moved around some import statements.
Implemented markov chain as class instead of tuple of three arrays.