added sumParamsTempl; several modifications