minor changes to the sample reduction script (correct path, map and masks)