update file markov_gen.c and add Makefile