Fixed some stupid errors in kappa calculations.
Fixed target_acceptance mode.