fixed bug in p_l calculations introduced by iterated log10, added parameter masking to dataset saving (~33% reduction in compressed size, ~10% reduction in uncompressed hdf5 file size)