Added -m and minor changes.

Added -m flag, removed unnecessary parameter bIsPM and fixed 'New %s'.
The variable `bSendToAll` will not be available outside the scope of this `if-end` block.