added masked arrays, unit conversion and accumulation