Returns a dict with snf, lhs and rhs now. Dimensions returned are correct now. Still not freeing what needs to be freed.