added saveMarkov()