diff --git a/docs/paper/the-karl-code/paper.tex b/docs/paper/the-karl-code/paper.tex
index 1d7af87..61825f5 100755
--- a/docs/paper/the-karl-code/paper.tex
+++ b/docs/paper/the-karl-code/paper.tex
@@ -187,13 +187,19 @@ For each movement step, the mean free path $\lambda_\text{mfp}$ of the correspon
\lambda_\text{mfp} = \frac{1}{\sum_i \sigma_i(E) n_i} \commaeq
\end{equation}
-where $E$ is the kinetic energy of the particle in the lab frame, $\sigma_i$ is the cross section of a specific interaction, and $n_i$ the particle number density of the interaction partner. In the lab frame, the neutral gas has a non-zero drift velocity. The cross sections are evaluated from predefined functions. The particle number density of the interaction partner is calculated either from a predefined function for background species, or from the density field for tracked species, see section~\ref{ssec:denstiy_fields} and \ref{sec:implementation} for more information. The actual moved distance $d$ is a statistical quantity, which can be derived from the MFP through
+where $E$ is the kinetic energy of the particle in the lab frame, $\sigma_i$ is the cross section of a specific interaction, and $n_i$ the particle number density of the interaction partner. In the lab frame, the neutral gas has a non-zero drift velocity. The cross sections are evaluated from predefined functions. The particle number density of the interaction partner is calculated either from a predefined function for background species, or from the density field for tracked species, see section~\ref{ssec:denstiy_fields} and \ref{sec:implementation} for more information. The actual moved distance $d$ is a statistical quantity, which \changed{is} derived from the MFP through
\changed{
\begin{equation}
d = -\lambda_\text{mfp} \cdot \log \eta \commaeq
\label{eq:distance_from_mfp}
\end{equation}}
-where $\eta \in (0, 1]$ is an uniform random number. This is due to an assumed Poisson random process, that results in an exponential probability distribution. The particle is then moved by this distance $d$ in dependence on the electromagnetic fields inside the source, see section~\ref{ssec:movement}. During this step the density fields of the corresponding specie are updated.
+where $\eta \in (0, 1]$ is an uniform random number.
+
+\changed{This results in an exponential distribution for the distance $d$. This exponential distribution follows from the assumed Poisson distribution of the number of interactions within a certain path length.}
+%
+%This is due to an assumed Poisson random process, that results in an exponential probability distribution.
+
+The particle is then moved by this distance $d$ in dependence on the electromagnetic fields inside the source, see section~\ref{ssec:movement}. During this step the density fields of the corresponding specie are updated.
After the movement step it is evaluated if the particle needs to be terminated, which is mainly a check if the particle has left the simulation domain, or has hit a wall, see~\ref{ssec:termination}. If the particle is still alive, a random interaction is selected from the list of available interactions, weighted by its probability to occur. The probability scales with the cross section of that interaction and the interaction partner particle density. The corresponding interaction is performed and the interaction products, which are not the current particle are added to the particle queue. If the particle does no longer exist after the interaction (through recombination or clustering) it is terminated, otherwise the next movement step is performed.
@@ -364,7 +370,7 @@ If the distribution is provided by a file, the angle distribution inside the fil
In some cases, there is not enough data from one source alone, to cover the whole impact energy range, but maybe from different sources. This is the case for the scattering of electrons of tritium molecules. At high energies, the scattering angle distribution is determined from external simulation \citep{Kellerer_2022}, at lower energies isotropic scattering can be assumed. For these cases, the angle can be determined through the composite of two distributions. The cross section of elastic scattering was measured at different experiments in the energy range of $2 \times 10^{-2}$ eV to $1 \times 10^2$ eV. The results of these experiments were combined by \citep{Tawara.1990} and parameterized by \citep{Yoon.2008}.
-The interaction itself is performed in multiple steps. First, the velocity of a target particle is determined. It is compound of the drift velocity of the species and a velocity, which is drawn from the underlying velocity distribution. For the tritium gas, the drift velocity is determined in external simulation and the velocity distribution is given by a Maxwell-Boltzmann distribution \citep{Kellerer_2022}. For tracked particles the drift velocity is assumed to be zero and the velocity distribution is given by the density field. The velocity of the target particle is used to determine the impact energy in the laboratory frame. This energy is then used for the evaluation of the polar scattering angle $\theta$. A second scattering angle is drawn in the interval $[0, 2\pi)$, responsible for the change of momentum in azimuthal direction. Both angles and the target velocity are then used to rotate the velocity vector of the impact particle in the center of mass frame, see \citep{Kellerer_2022} for the full calculation. This rotated velocity is then used as the new velocity of the impact particle.
+The interaction itself is performed in multiple steps. First, the velocity of a target particle is determined. It is compound of the drift velocity of the species and a velocity, which is drawn from the underlying velocity distribution. For the tritium gas, the drift velocity is determined in external simulation and the velocity distribution is given by a Maxwell-Boltzmann distribution \citep{Kellerer_2022}. For tracked particles the drift velocity is assumed to be zero and the velocity distribution is given by the density field. The velocity of the target particle is used to determine the impact energy in the \changed{center of mass} frame. This energy is then used for the evaluation of the polar scattering angle $\theta$. A second scattering angle is drawn in the interval $[0, 2\pi)$, responsible for the change of momentum in azimuthal direction. Both angles and the target velocity are then used to rotate the velocity vector of the impact particle in the center of mass frame, see \citep{Kellerer_2022} for the full calculation. This rotated velocity is then used as the new velocity of the impact particle.
\paragraph{Clustering}
\changed{
@@ -464,9 +470,11 @@ The injection of new particles to the particle queue is managed by the injector
In the case of the KATRIN source, the injected species are electrons, with an isotropic injection angle distribution and a Fermi energy distribution \citep{Fermi:1934aa} and T$_2^+$ ions, also with an isotropic injection angle distribution, but with a Maxwell-Boltzmann energy distribution. T$_2^+$ is used instead of HeT$^+$ due to the fact that both molecules have almost the same mass and no cross section data could be found in the literature for the latter. Nuclear recoil from the $\upbeta$-decay is not considered. This is again due to the higher interaction probability of the ions with the neutral gas, which thermalizes them more quickly. The mother drift velocity is provided by the drift velocity of the neutral tritium gas.
-However, the injector class can also be used for the injection of a stream of directed particles. This is necessary, either for the evaluation of the influence of an electron gun in the experiment, or for test purposes.
+The injector class can also be used for the injection of a stream of directed particles. This is necessary, either for the evaluation of the influence of an electron gun in the experiment, or for test purposes.
-After the injection of particles, the timer class is provided with a time, which has passed between injections. This time is based on the user defined activity. It can be calculated from the integrated density in the source and the decay constant.
+After the injection of particles, the timer class is provided with a time, which has passed between injections. This time is based on the user defined activity.
+%% Might imply that the code can do that, which it can't
+%It can be calculated from the integrated density in the source and the decay constant.
\subsection{Parallelization}
diff --git a/docs/paper/the-karl-code/referee_report_1.md b/docs/paper/the-karl-code/referee_report_1.md
index d5b60e7..af5ae9c 100644
--- a/docs/paper/the-karl-code/referee_report_1.md
+++ b/docs/paper/the-karl-code/referee_report_1.md
@@ -32,7 +32,7 @@ Consequently, I do not recommend publication of this manuscript.
- C: “The code is parallelized using ... terminator, interaction types, movers and initialization.” This is difficult to understand and refers to details that are too specific.
Some of the comments are also obvious: the input of a program is expected to provide information about the simulation that the program is to carry out. What is the “resolution of the simulation domain”? What are the “user defined species”? What are the terminator and the movers?
1. F: Again, most of the information provided in sections 2 and 3 refer to the standard logic followed by all Monte Carlo codes simulating radiation-matter interaction that I know. A clear description of the novelties of the new code should be done making the corresponding comparisons with other available Monte Carlo codes that would be unable to do the same work.
2. C: Concerning equation (1): What is an “interaction partner”? Where is entering the drift velocity of the neutral gas? What are the predefined functions used to calculate the cross sections?
-3. C: Equation (2) is not the most efficient way to calculate the “moved distance”. You should use d = −λmfp ·log η because this saves a division. In addition, and concerning the comment just after this equation, it is worth noting that the number of collisions in a given path length follows a Poisson distribution, but distances moved are distributed exponentially. Changed (in text not [yet] in the code); would not be a bottleneck in any case
+3. C: Equation (2) is not the most efficient way to calculate the “moved distance”. You should use d = −λmfp ·log η because this saves a division. In addition, and concerning the comment just after this equation, it is worth noting that the number of collisions in a given path length follows a Poisson distribution, but distances moved are distributed exponentially. Changed (in text not [yet] in the code); would not be a bottleneck in any case; poisson stuff also rephrased
4. ?: Figure 2, without dimensions and no further explanations, seems to me not much
useful.
1. ? First paragraph of section 3: I should say that the characteristics mentioned are not exclusive of C++ and that, in my opinion, any modern programming language could
diff --git a/docs/paper/the-karl-code/referee_report_2.md b/docs/paper/the-karl-code/referee_report_2.md
index 145f5a3..bb120f1 100644
--- a/docs/paper/the-karl-code/referee_report_2.md
+++ b/docs/paper/the-karl-code/referee_report_2.md
@@ -60,7 +60,7 @@ Page 4:
Line 13: F: "High resolution" -> resolution in what quantity? What does high mean in this context? I also don't understand what phase space evolution would necessarily be expected to have better or worse resolution than particle tracking MC.
We have tried to explain this in more detail. In fact we are developing a very boiled down version of the phasespace solver, but a reasonable comparison of the two approaches is rather complex. We can however acknowledge that the phasespace code is only feasible for 1D simulations...
-Line 24: C: mention the mean free path used to sample a poisson process (as written it suggests a fixed distance step)
+Line 24: C: mention the mean free path used to sample a poisson process (as written it suggests a fixed distance step) is written almost immediately below the equation for the mean free path...
Line 28: C: "density is proportional to cumulated time" - presumably it depends not only on the time but also on the flux into the segment and also the volume of the segment? How large are the segments? Is there variability of density across those segments? text changes necessary? Stuff is explaned in the non-introduction part
@@ -91,6 +91,7 @@ Page 14: C, F: Elastic scattering: please include figures of the various c
Line 40: F: "for tracked particles the drift velocity is assumed to be zero and the density field". Why is this a valid assumption? I can imagine a particle making gryo orbits has a typical velocity much larger than its mean drift velocity, for example.
Line 44: C, F: the description here is confusing. Presumably theta and phi are drawn in the COM frame and then mapped to lab frame, not vice versa, right? It reads here as if they are randomly drawn in the lab frame, if thats so please explain why and how.
+ changed laboratory frame to center of mass frame, should have been just a mistake
Clustering: F: please include a figure with the cross sections. It is actually not totally clear here what clustering interactions are considered (what exactly is the initial state and what is the final state), can you explain it more explicitly? Please also briefly explain the approaches taken in refs 15,16 to evaluate these cross sections.
@@ -109,14 +110,14 @@ Page 17: C, F: "the fastest axis refers to the axis for which the entry c
Page 18: F, C:
First paragraph of this section seems verbose, can be trimmed down.
Line 41: F, C: I don't understand why the sentence begins "However," -this seems to imply something in contradiction to the previous paragraph, but it is not. Instead consider "Alternatively,"
-
+ do not now which paragraph is referenced nor which "however"
Line 53: F: what is the meaning of either "reasonable" and "robust" in this context?
Line 55: F: This is the first mention of rotation. Where is the physics of molecular rotation included? Is it improbable? How much so? Please expand.
Page 19:
-Line 40: C, F: I think "however" is an odd construction here. I would suggest to begin with "the injector class can be configured in a number of ways. The most commonly used is…". And later, "another approach to injection is…"
+Line 40: C, F: I think "however" is an odd construction here. I would suggest to begin with "the injector class can be configured in a number of ways. The most commonly used is…". And later, "another approach to injection is…" removed the "However"
Figure 3: C: Please explain "weak scaling" and "Ideal" in this figure.