Use visitor pattern with closure to avoid dups

In order to avoid duplicate monitoringCodes map,
use a closure with visitor pattern to iterate over the map.
Document new parameters in man page.