Install the theta vector in the pp reference class object

after optimization.
Merge remote-tracking branch 'origin/flexLambda' into origin-flexLambda