emacs: ability to restart merlin with a flag.
emacs: Cleaning code.