BUG: forgot to include a factor of two when estimating lambda
DEBUG: Temporary commit of long-form inference for lambda, in case I need it again.

Also re-arranged the order in the final line of the vectorized version,
to avoid unnecessary computation.
DEBUG: Got rid of the long-hand scalar version of the lambda update