'script' field is optional if 'options.command' is defined

If an 'options.command' is set, this allow to don't put anything on the 'script' field of Monitor constructor, only the options bag. Also it has some clean-ups.