Fixed PV calculation for varying z-grid + added passive tracer code + other fixes.

Signed-off-by: deepak <dpak.cherian@gmail.com>
bugfixes

Signed-off-by: deepak <dpak.cherian@gmail.com>