diff --git a/dumux/boxmodels/richards/richardsfluxvariables.hh b/dumux/boxmodels/richards/richardsfluxvariables.hh
index cc4ba20247b2c8e2517aa105025c5cf08ab05233..6f5aac48ec40b793a90e44e04aced8bcabe844ac 100644
--- a/dumux/boxmodels/richards/richardsfluxvariables.hh
+++ b/dumux/boxmodels/richards/richardsfluxvariables.hh
@@ -59,7 +59,7 @@ class RichardsFluxVariables
 
     typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar;
     typedef Dune::FieldVector<Scalar, dim> DimVector;
-    typedef Dune::FieldMatrix<Scalar, dim, dim> DimTensor;
+    typedef Dune::FieldMatrix<Scalar, dim, dim> DimMatrix;
 
     typedef typename GET_PROP_TYPE(TypeTag, FVElementGeometry) FVElementGeometry;
     typedef typename FVElementGeometry::SubControlVolumeFace SCVFace;
@@ -95,7 +95,7 @@ public:
     /*!
      * \brief Return the intrinsic permeability \f$\mathrm{[m^2]}\f$.
      */
-    const DimTensor &intrinsicPermeability() const
+    const DimMatrix &intrinsicPermeability() const
     { return K_; }
 
     /*!
@@ -220,7 +220,7 @@ protected:
     DimVector potentialGrad_;
 
     // intrinsic permeability
-    DimTensor K_;
+    DimMatrix K_;
 };
 
 } // end namepace
diff --git a/dumux/boxmodels/richards/richardslocalresidual.hh b/dumux/boxmodels/richards/richardslocalresidual.hh
index 30304a2716dfc45ef35fc7146fa864bae83ec1b5..36347704139a11a763e89c0e10abc10420ace7c6 100644
--- a/dumux/boxmodels/richards/richardslocalresidual.hh
+++ b/dumux/boxmodels/richards/richardslocalresidual.hh
@@ -85,7 +85,7 @@ public:
      * \param usePrevSol Calculate the storage term of the previous solution
      *                   instead of the model's current solution.
      */
-    void computeStorage(PrimaryVariables &storage, int scvIdx, bool usePrevSol) const
+    void computeStorage(PrimaryVariables &storage, const int scvIdx, bool usePrevSol) const
     {
         // if flag usePrevSol is set, the solution from the previous
         // time step is used, otherwise the current solution is
@@ -117,7 +117,7 @@ public:
      * \param onBoundary A boolean variable to specify whether the flux variables
      *        are calculated for interior SCV faces or boundary faces, default=false
      */
-    void computeFlux(PrimaryVariables &flux, int faceIdx, bool onBoundary=false) const
+    void computeFlux(PrimaryVariables &flux, const int faceIdx, bool onBoundary=false) const
     {
         FluxVariables fluxVars(this->problem_(),
                                this->element_(),
@@ -154,7 +154,7 @@ public:
      * \param scvIdx The sub control volume index inside the current
      *               element
      */
-    void computeSource(PrimaryVariables &source, int scvIdx)
+    void computeSource(PrimaryVariables &source, const int scvIdx)
     {
         this->problem_().boxSDSource(source,
                                      this->element_(),
diff --git a/dumux/boxmodels/richards/richardsmodel.hh b/dumux/boxmodels/richards/richardsmodel.hh
index 4dc32e23a68ca2219686fb058496f7bd72fa4955..344308fe39147eda8c5aa2c7c75442f6119d67f0 100644
--- a/dumux/boxmodels/richards/richardsmodel.hh
+++ b/dumux/boxmodels/richards/richardsmodel.hh
@@ -117,7 +117,7 @@ public:
      * \param vertIdx The global index of the vertex in question
      * \param pvIdx The index of the primary variable
      */
-    Scalar primaryVarWeight(int vertIdx, int pvIdx) const
+    Scalar primaryVarWeight(const int vertIdx, const int pvIdx) const
     {
         if (Indices::pwIdx == pvIdx)
             return 1e-6;
diff --git a/dumux/boxmodels/richards/richardsnewtoncontroller.hh b/dumux/boxmodels/richards/richardsnewtoncontroller.hh
index fbe1451472a7f8017b42ab9849d65f901ee40bb2..ee2b7dddf5175b96a7f8e5b6f4479d6837848970 100644
--- a/dumux/boxmodels/richards/richardsnewtoncontroller.hh
+++ b/dumux/boxmodels/richards/richardsnewtoncontroller.hh
@@ -91,20 +91,20 @@ public:
 
             // clamp saturation change to at most 20% per iteration
             FVElementGeometry fvGeomtry;
-            const GridView &gv = this->problem_().gridView();
-            ElementIterator eIt = gv.template begin<0>();
-            const ElementIterator eEndIt = gv.template end<0>();
-            for (; eIt != eEndIt; ++eIt) {
-                fvGeomtry.update(gv, *eIt);
+            const GridView &gridView = this->problem_().gridView();
+            ElementIterator elemIt = gridView.template begin<0>();
+            const ElementIterator elemEndIt = gridView.template end<0>();
+            for (; elemIt != elemEndIt; ++elemIt) {
+                fvGeomtry.update(gridView, *elemIt);
                 for (int i = 0; i < fvGeomtry.numVertices; ++i) {
-                    int globI = this->problem_().vertexMapper().map(*eIt, i, dim);
+                    int globI = this->problem_().vertexMapper().map(*elemIt, i, dim);
 
                     // calculate the old wetting phase saturation
                     const SpatialParams &spatialParams = this->problem_().spatialParams();
-                    const MaterialLawParams &mp = spatialParams.materialLawParams(*eIt, fvGeomtry, i);
+                    const MaterialLawParams &mp = spatialParams.materialLawParams(*elemIt, fvGeomtry, i);
                     Scalar pcMin = MaterialLaw::pC(mp, 1.0);
                     Scalar pW = uLastIter[globI][pwIdx];
-                    Scalar pN = std::max(this->problem_().referencePressure(*eIt, fvGeomtry, i),
+                    Scalar pN = std::max(this->problem_().referencePressure(*elemIt, fvGeomtry, i),
                                          pW + pcMin);
                     Scalar pcOld = pN - pW;
                     Scalar SwOld = std::max<Scalar>(0.0, MaterialLaw::Sw(mp, pcOld));
diff --git a/dumux/boxmodels/richards/richardsproblem.hh b/dumux/boxmodels/richards/richardsproblem.hh
index 000bbf9466bc58ab888554a89b11adc698b6bae5..e061557aae0a6df8f501a2211405bd1bd727cd98 100644
--- a/dumux/boxmodels/richards/richardsproblem.hh
+++ b/dumux/boxmodels/richards/richardsproblem.hh
@@ -85,7 +85,7 @@ public:
      */
     Scalar referencePressure(const Element &element,
                              const FVElementGeometry fvGeometry,
-                             int scvIdx) const
+                             const int scvIdx) const
     { DUNE_THROW(Dune::NotImplemented, "referencePressure() method not implemented by the actual problem"); };
     // \}
 };
diff --git a/dumux/boxmodels/richards/richardsvolumevariables.hh b/dumux/boxmodels/richards/richardsvolumevariables.hh
index 52e98f4ed2a0521e43199a1c627166482477d333..ab67187a75804b065c11960b1cabace45c8c926c 100644
--- a/dumux/boxmodels/richards/richardsvolumevariables.hh
+++ b/dumux/boxmodels/richards/richardsvolumevariables.hh
@@ -85,23 +85,23 @@ public:
      * \param isOldSol Specifies whether the solution is from
      *                 the previous time step or from the current one
      */
-    void update(const PrimaryVariables &primaryVariables,
+    void update(const PrimaryVariables &priVars,
                 const Problem &problem,
                 const Element &element,
                 const FVElementGeometry &fvGeometry,
-                int scvIdx,
-                bool isOldSol)
+                const int scvIdx,
+                const bool isOldSol)
     {
         assert(!FluidSystem::isLiquid(nPhaseIdx));
 
-        ParentType::update(primaryVariables,
+        ParentType::update(priVars,
                            problem,
                            element,
                            fvGeometry,
                            scvIdx,
                            isOldSol);
 
-        completeFluidState(primaryVariables, problem, element, fvGeometry, scvIdx, fluidState_);
+        completeFluidState(priVars, problem, element, fvGeometry, scvIdx, fluidState_);
 
         //////////
         // specify the other parameters
@@ -115,21 +115,21 @@ public:
         porosity_ = problem.spatialParams().porosity(element, fvGeometry, scvIdx);
 
         // energy related quantities not contained in the fluid state
-        asImp_().updateEnergy_(primaryVariables, problem, element, fvGeometry, scvIdx, isOldSol);
+        asImp_().updateEnergy_(priVars, problem, element, fvGeometry, scvIdx, isOldSol);
     }
 
     /*!
      * \copydoc BoxModel::completeFluidState
      */
-    static void completeFluidState(const PrimaryVariables& primaryVariables,
+    static void completeFluidState(const PrimaryVariables& priVars,
                                    const Problem& problem,
                                    const Element& element,
                                    const FVElementGeometry& fvGeometry,
-                                   int scvIdx,
+                                   const int scvIdx,
                                    FluidState& fluidState)
     {
         // temperature
-        Scalar t = Implementation::temperature_(primaryVariables, problem, element,
+        Scalar t = Implementation::temperature_(priVars, problem, element,
                                                 fvGeometry, scvIdx);
         fluidState.setTemperature(t);
 
@@ -138,8 +138,8 @@ public:
         const MaterialLawParams &matParams =
             problem.spatialParams().materialLawParams(element, fvGeometry, scvIdx);
         Scalar minPc = MaterialLaw::pC(matParams, 1.0);
-        fluidState.setPressure(wPhaseIdx, primaryVariables[pwIdx]);
-        fluidState.setPressure(nPhaseIdx, std::max(pnRef, primaryVariables[pwIdx] + minPc));
+        fluidState.setPressure(wPhaseIdx, priVars[pwIdx]);
+        fluidState.setPressure(nPhaseIdx, std::max(pnRef, priVars[pwIdx] + minPc));
 
         // saturations
         Scalar Sw = MaterialLaw::Sw(matParams, fluidState.pressure(nPhaseIdx) - fluidState.pressure(wPhaseIdx));
@@ -182,7 +182,7 @@ public:
      *
      * \param phaseIdx The index of the fluid phase
      */
-    Scalar saturation(int phaseIdx) const
+    Scalar saturation(const int phaseIdx) const
     { return fluidState_.saturation(phaseIdx); }
 
     /*!
@@ -191,7 +191,7 @@ public:
      *
      * \param phaseIdx The index of the fluid phase
      */
-    Scalar density(int phaseIdx) const
+    Scalar density(const int phaseIdx) const
     { return fluidState_.density(phaseIdx); }
 
     /*!
@@ -205,7 +205,7 @@ public:
      *
      * \param phaseIdx The index of the fluid phase
      */
-    Scalar pressure(int phaseIdx) const
+    Scalar pressure(const int phaseIdx) const
     { return fluidState_.pressure(phaseIdx); }
 
     /*!
@@ -229,7 +229,7 @@ public:
      *
      * \param phaseIdx The index of the fluid phase
      */
-    Scalar mobility(int phaseIdx) const
+    Scalar mobility(const int phaseIdx) const
     { return relativePermeability(phaseIdx)/fluidState_.viscosity(phaseIdx); }
 
     /*!
@@ -238,7 +238,7 @@ public:
      *
      * \param phaseIdx The index of the fluid phase
      */
-    Scalar relativePermeability(int phaseIdx) const
+    Scalar relativePermeability(const int phaseIdx) const
     {
         if (phaseIdx == wPhaseIdx)
             return relativePermeabilityWetting_;
@@ -261,7 +261,7 @@ protected:
                             const Problem& problem,
                             const Element &element,
                             const FVElementGeometry &fvGeometry,
-                            int scvIdx)
+                            const int scvIdx)
     {
         return problem.boxTemperature(element, fvGeometry, scvIdx);
     }
@@ -269,12 +269,12 @@ protected:
     /*!
      * \brief Called by update() to compute the energy related quantities
      */
-    void updateEnergy_(const PrimaryVariables &sol,
+    void updateEnergy_(const PrimaryVariables &priVars,
                        const Problem &problem,
                        const Element &element,
                        const FVElementGeometry &fvGeometry,
-                       int scvIdx,
-                       bool isOldSol)
+                       const int scvIdx,
+                       const bool isOldSol)
     { }
 
     FluidState fluidState_;