logging and cmdline options added to pixelmask generators. improved names. better hdf5 pixelmask code re-use.