Adds check for missing res file in sampleWdMass rather than allocating all of memory