diff --git a/auto/Wrap/doxygenResample.i b/auto/Wrap/doxygenResample.i
index 655ee88455ad8fd7d61c376391734a1874d98ea6..571422fa3b5d5eeb5e9c35e3aceba8240e35b8d6 100644
--- a/auto/Wrap/doxygenResample.i
+++ b/auto/Wrap/doxygenResample.i
@@ -129,6 +129,101 @@ C++ includes: DecouplingApproximationStrategy.h
 ";
 
 
+// File: classDiffuseElement.xml
+%feature("docstring") DiffuseElement "
+
+Data stucture containing both input and output of a single detector cell.
+
+C++ includes: DiffuseElement.h
+";
+
+%feature("docstring")  DiffuseElement::DiffuseElement "DiffuseElement::DiffuseElement(double wavelength, double alpha_i, double phi_i, std::unique_ptr< IPixel > pixel, const Eigen::Matrix2cd &beam_polarization, const Eigen::Matrix2cd &analyzer, bool isSpecular_, const Fluxes *const fluxes_in=nullptr, const Fluxes *const fluxes_out=nullptr)
+";
+
+%feature("docstring")  DiffuseElement::DiffuseElement "DiffuseElement::DiffuseElement(const DiffuseElement &other)
+";
+
+%feature("docstring")  DiffuseElement::~DiffuseElement "DiffuseElement::~DiffuseElement()
+";
+
+%feature("docstring")  DiffuseElement::setFluxes "void DiffuseElement::setFluxes(const Fluxes *fluxes_in, const Fluxes *fluxes_out)
+";
+
+%feature("docstring")  DiffuseElement::fluxesIn "const Fluxes& DiffuseElement::fluxesIn() const
+";
+
+%feature("docstring")  DiffuseElement::fluxesOut "const Fluxes& DiffuseElement::fluxesOut() const
+";
+
+%feature("docstring")  DiffuseElement::pointElement "DiffuseElement DiffuseElement::pointElement(double x, double y) const
+
+Returns copy of this  DiffuseElement with k_f given by in-pixel coordinate x,y. 
+";
+
+%feature("docstring")  DiffuseElement::polarizationHandler "const PolarizationHandler& DiffuseElement::polarizationHandler() const
+
+Returns assigned PolarizationHandler. 
+";
+
+%feature("docstring")  DiffuseElement::wavelength "double DiffuseElement::wavelength() const
+";
+
+%feature("docstring")  DiffuseElement::getAlphaI "double DiffuseElement::getAlphaI() const
+";
+
+%feature("docstring")  DiffuseElement::getPhiI "double DiffuseElement::getPhiI() const
+";
+
+%feature("docstring")  DiffuseElement::getAlphaMean "double DiffuseElement::getAlphaMean() const
+";
+
+%feature("docstring")  DiffuseElement::getPhiMean "double DiffuseElement::getPhiMean() const
+";
+
+%feature("docstring")  DiffuseElement::setIntensity "void DiffuseElement::setIntensity(double intensity)
+";
+
+%feature("docstring")  DiffuseElement::addIntensity "void DiffuseElement::addIntensity(double intensity)
+";
+
+%feature("docstring")  DiffuseElement::intensity "double DiffuseElement::intensity() const
+";
+
+%feature("docstring")  DiffuseElement::getKi "kvector_t DiffuseElement::getKi() const
+";
+
+%feature("docstring")  DiffuseElement::getMeanKf "kvector_t DiffuseElement::getMeanKf() const
+";
+
+%feature("docstring")  DiffuseElement::meanQ "kvector_t DiffuseElement::meanQ() const
+";
+
+%feature("docstring")  DiffuseElement::getQ "kvector_t DiffuseElement::getQ(double x, double y) const
+
+Returns scattering vector Q, with Kf determined from in-pixel coordinates x,y. In-pixel coordinates take values from 0 to 1. 
+";
+
+%feature("docstring")  DiffuseElement::integrationFactor "double DiffuseElement::integrationFactor(double x, double y) const
+";
+
+%feature("docstring")  DiffuseElement::solidAngle "double DiffuseElement::solidAngle() const
+";
+
+%feature("docstring")  DiffuseElement::getAlpha "double DiffuseElement::getAlpha(double x, double y) const
+";
+
+%feature("docstring")  DiffuseElement::getPhi "double DiffuseElement::getPhi(double x, double y) const
+";
+
+%feature("docstring")  DiffuseElement::wavevectorInfo "WavevectorInfo DiffuseElement::wavevectorInfo() const
+";
+
+%feature("docstring")  DiffuseElement::isSpecular "bool DiffuseElement::isSpecular() const
+
+Tells if simulation element corresponds to a specular peak. 
+";
+
+
 // File: classFluxes.xml
 %feature("docstring") Fluxes "";
 
@@ -831,13 +926,13 @@ C++ includes: SSCAStrategy.h
 ";
 
 
-// File: namespace_0d17.xml
+// File: namespace_0d10.xml
 
 
-// File: namespace_0d25.xml
+// File: namespace_0d19.xml
 
 
-// File: namespace_0d29.xml
+// File: namespace_0d27.xml
 
 
 // File: namespace_0d31.xml
@@ -852,13 +947,13 @@ C++ includes: SSCAStrategy.h
 // File: namespace_0d37.xml
 
 
-// File: namespace_0d44.xml
+// File: namespace_0d39.xml
 
 
 // File: namespace_0d46.xml
 
 
-// File: namespace_0d8.xml
+// File: namespace_0d48.xml
 
 
 // File: namespaceSampleUtils.xml
@@ -914,6 +1009,12 @@ Get default z limits for generating a material profile.
 // File: FFSum_8h.xml
 
 
+// File: DiffuseElement_8cpp.xml
+
+
+// File: DiffuseElement_8h.xml
+
+
 // File: ComputeBA_8cpp.xml
 
 
@@ -1091,6 +1192,9 @@ Get default z limits for generating a material profile.
 // File: dir_05914d190eb55651e85671c4f064dae1.xml
 
 
+// File: dir_28bc1277e419364b011e46aeb2e8e251.xml
+
+
 // File: dir_5e69988b243d40135cf1f8fc1086c5f7.xml
 
 
diff --git a/auto/Wrap/libBornAgainSample_wrap.cpp b/auto/Wrap/libBornAgainSample_wrap.cpp
index 7daae9731dd98947be75c1d3e8984c1e0d812ca4..a124e4bf4376a6ac303b2c93c7c3e7aae703d696 100644
--- a/auto/Wrap/libBornAgainSample_wrap.cpp
+++ b/auto/Wrap/libBornAgainSample_wrap.cpp
@@ -6828,7 +6828,7 @@ SWIGINTERN void std_vector_Sl_std_pair_Sl_double_Sc_double_Sg__Sg__insert__SWIG_
 #include "Sample/Lattice/BakeLattice.h"
 #include "Sample/Lattice/ISelectionRule.h"
 #include "Sample/Material/MaterialFactoryFuncs.h"
-#include "Sample/Material/WavevectorInfo.h"
+#include "Base/Vector/WavevectorInfo.h"
 #include "Sample/Multilayer/Layer.h"
 #include "Sample/Multilayer/MultiLayer.h"
 #include "Sample/Particle/Crystal.h"