Checkpoint A v3.0. Major change in lambda_pdf_update (using tuple for lambda, shifted LAMBDA_STEP). Also added lots of comments.