small mods to multiRA2domMeanRA, script to run it in batch