clean up help file
changed around the merge.js file, updated the doc
use emit in replace.js