Adding slots to classes to minimize memory usage
Adding forward parameter to logdensity calls, although it is never used,  Check this