add a lot of logic to make tag replacement work. Updated README.md and fixed an mc bug in buf.c