added readMarkov