added "m" to the getopt string, added call to specify_master_mode when a foreman name is specified