Replacing assertions with error checks, and a few code cleanups (i.e. removing unused packages/variables).
Replacing assertions with error checks,
and a few code cleanups (i.e. removing unused packages/variables).

simpeg/discretize,simpeg/discretize,simpeg/discretize