Avoid producing NaNs in the gains or leakages
fix setopen (lower/upper case confusion) - from Tony Wong
fix nscans skip and read code
add mfs option to restor, handle mfs plane in linmos
fix mem alloc issue