added latest code to clamp kappas and newest synthetic experiment