add handling of bounded parameters in leastsq_fit and generating rvs for the sum of 2 pfs