caching bugfix for psi2 computations
added gradient checker model
merge rbf_inv changes