fixed SSRFPACK bugs. Planar gradients added.