diff --git a/Makefile b/Makefile
index 1f4a169aa2532e6b58ddf5bcde556f789704e9c4..28623501b0b09b47ad3acb725996b18ee68750f6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
 # Makefile for LAKE model
 
  exec = lake.out
- FC=ifort#mpif90
- #FC=gfortran
+ #FC=ifort#mpif90
+ FC=gfortran
  check_keys = # -check bounds -check pointers
  debug_keys = #-g # debugger
 
diff --git a/docs/users_guide.aux b/docs/users_guide.aux
index 93df1c4ff56d16b240e870d032751a29a98cad30..caaac8ba25b0a130804c835b2aa10d46b26fc416 100644
--- a/docs/users_guide.aux
+++ b/docs/users_guide.aux
@@ -1,14 +1,14 @@
 \relax 
-\@writefile{toc}{\contentsline {section}{\numberline {0.1}Compiling the model and creating a project}{2}}
-\@writefile{toc}{\contentsline {section}{\numberline {0.2}Configuring the driver file}{2}}
-\@writefile{lot}{\contentsline {table}{\numberline {1}{\ignorespaces The parameters of driver file\relax }}{2}}
+\@writefile{toc}{\contentsline {section}{\numberline {0.1}Compiling the model and creating a project}{2}\protected@file@percent }
+\@writefile{toc}{\contentsline {section}{\numberline {0.2}Configuring the driver file}{2}\protected@file@percent }
+\@writefile{lot}{\contentsline {table}{\numberline {1}{\ignorespaces The parameters of driver file\relax }}{2}\protected@file@percent }
 \gdef \LT@i {\LT@entry 
     {1}{201.44666pt}\LT@entry 
     {1}{296.92755pt}}
-\@writefile{toc}{\contentsline {section}{\numberline {0.3}Configuring the setup file}{5}}
-\@writefile{lot}{\contentsline {table}{\numberline {3}{\ignorespaces The parameters of setup file\relax }}{5}}
+\@writefile{toc}{\contentsline {section}{\numberline {0.3}Configuring the setup file}{5}\protected@file@percent }
+\@writefile{lot}{\contentsline {table}{\numberline {3}{\ignorespaces The parameters of setup file\relax }}{5}\protected@file@percent }
 \gdef \LT@ii {\LT@entry 
     {1}{201.44666pt}\LT@entry 
     {1}{296.92755pt}}
-\@writefile{toc}{\contentsline {section}{\numberline {0.4}Running the model}{9}}
-\@writefile{toc}{\contentsline {section}{\numberline {0.5}Model output}{9}}
+\@writefile{toc}{\contentsline {section}{\numberline {0.4}Running the model}{9}\protected@file@percent }
+\@writefile{toc}{\contentsline {section}{\numberline {0.5}Model output}{9}\protected@file@percent }
diff --git a/docs/users_guide.log b/docs/users_guide.log
index c27f29523b416cebaa4912e46a570a61b779382a..198ee5d49116784dc3aeec4062a6e7f27263fb5f 100644
--- a/docs/users_guide.log
+++ b/docs/users_guide.log
@@ -1,73 +1,73 @@
-This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2020.8.10)  29 NOV 2020 14:21
+This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019) (preloaded format=pdflatex 2019.11.28)  18 JUL 2021 13:50
 entering extended mode
  restricted \write18 enabled.
+ file:line:error style messages enabled.
  %&-line parsing enabled.
 **users_guide.tex
 (./users_guide.tex
-LaTeX2e <2017-04-15>
-Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
-(/usr/share/texlive/texmf-dist/tex/latex/base/book.cls
-Document Class: book 2014/09/29 v1.4h Standard LaTeX document class
-(/usr/share/texlive/texmf-dist/tex/latex/base/bk10.clo
-File: bk10.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
+LaTeX2e <2018-12-01>
+(/usr/local/texlive/2019/texmf-dist/tex/latex/base/book.cls
+Document Class: book 2018/09/03 v1.4i Standard LaTeX document class
+(/usr/local/texlive/2019/texmf-dist/tex/latex/base/bk10.clo
+File: bk10.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
 )
-\c@part=\count79
-\c@chapter=\count80
-\c@section=\count81
-\c@subsection=\count82
-\c@subsubsection=\count83
-\c@paragraph=\count84
-\c@subparagraph=\count85
-\c@figure=\count86
-\c@table=\count87
+\c@part=\count80
+\c@chapter=\count81
+\c@section=\count82
+\c@subsection=\count83
+\c@subsubsection=\count84
+\c@paragraph=\count85
+\c@subparagraph=\count86
+\c@figure=\count87
+\c@table=\count88
 \abovecaptionskip=\skip41
 \belowcaptionskip=\skip42
 \bibindent=\dimen102
 )
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty
-Package: amsmath 2017/09/02 v2.17a AMS math features
+(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsmath.sty
+Package: amsmath 2018/12/01 v2.17b AMS math features
 \@mathmargin=\skip43
 
 For additional information on amsmath, use the `?' option.
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty
+(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amstext.sty
 Package: amstext 2000/06/29 v2.01 AMS text
 
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty
+(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsgen.sty
 File: amsgen.sty 1999/11/30 v2.0 generic functions
 \@emptytoks=\toks14
 \ex@=\dimen103
 ))
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty
+(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsbsy.sty
 Package: amsbsy 1999/11/29 v1.2d Bold Symbols
 \pmbraise@=\dimen104
 )
-(/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty
+(/usr/local/texlive/2019/texmf-dist/tex/latex/amsmath/amsopn.sty
 Package: amsopn 2016/03/08 v2.02 operator names
 )
-\inf@bad=\count88
-LaTeX Info: Redefining \frac on input line 213.
-\uproot@=\count89
-\leftroot@=\count90
-LaTeX Info: Redefining \overline on input line 375.
-\classnum@=\count91
-\DOTSCASE@=\count92
-LaTeX Info: Redefining \ldots on input line 472.
-LaTeX Info: Redefining \dots on input line 475.
-LaTeX Info: Redefining \cdots on input line 596.
-\Mathstrutbox@=\box26
-\strutbox@=\box27
+\inf@bad=\count89
+LaTeX Info: Redefining \frac on input line 223.
+\uproot@=\count90
+\leftroot@=\count91
+LaTeX Info: Redefining \overline on input line 385.
+\classnum@=\count92
+\DOTSCASE@=\count93
+LaTeX Info: Redefining \ldots on input line 482.
+LaTeX Info: Redefining \dots on input line 485.
+LaTeX Info: Redefining \cdots on input line 606.
+\Mathstrutbox@=\box27
+\strutbox@=\box28
 \big@size=\dimen105
-LaTeX Font Info:    Redeclaring font encoding OML on input line 712.
-LaTeX Font Info:    Redeclaring font encoding OMS on input line 713.
-\macc@depth=\count93
-\c@MaxMatrixCols=\count94
+LaTeX Font Info:    Redeclaring font encoding OML on input line 729.
+LaTeX Font Info:    Redeclaring font encoding OMS on input line 730.
+\macc@depth=\count94
+\c@MaxMatrixCols=\count95
 \dotsspace@=\muskip10
-\c@parentequation=\count95
-\dspbrk@lvl=\count96
+\c@parentequation=\count96
+\dspbrk@lvl=\count97
 \tag@help=\toks15
-\row@=\count97
-\column@=\count98
-\maxfields@=\count99
+\row@=\count98
+\column@=\count99
+\maxfields@=\count100
 \andhelp@=\toks16
 \eqnshift@=\dimen106
 \alignsep@=\dimen107
@@ -79,62 +79,62 @@ LaTeX Font Info:    Redeclaring font encoding OMS on input line 713.
 \multlinegap=\skip44
 \multlinetaggap=\skip45
 \mathdisplay@stack=\toks18
-LaTeX Info: Redefining \[ on input line 2817.
-LaTeX Info: Redefining \] on input line 2818.
+LaTeX Info: Redefining \[ on input line 2844.
+LaTeX Info: Redefining \] on input line 2845.
 )
-(/usr/share/texlive/texmf-dist/tex/latex/preprint/authblk.sty
+(/usr/local/texlive/2019/texmf-dist/tex/latex/preprint/authblk.sty
 Package: authblk 2001/02/27 1.3 (PWD)
 \affilsep=\skip46
 \@affilsep=\skip47
-\c@Maxaffil=\count100
-\c@authors=\count101
-\c@affil=\count102
+\c@Maxaffil=\count101
+\c@authors=\count102
+\c@affil=\count103
 )
-(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty
-(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
+(/usr/local/texlive/2019/texmf-dist/tex/latex/listings/listings.sty
+(/usr/local/texlive/2019/texmf-dist/tex/latex/graphics/keyval.sty
 Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
 \KV@toks@=\toks19
 )
-\lst@mode=\count103
-\lst@gtempboxa=\box28
+\lst@mode=\count104
+\lst@gtempboxa=\box29
 \lst@token=\toks20
-\lst@length=\count104
+\lst@length=\count105
 \lst@currlwidth=\dimen112
-\lst@column=\count105
-\lst@pos=\count106
+\lst@column=\count106
+\lst@pos=\count107
 \lst@lostspace=\dimen113
 \lst@width=\dimen114
-\lst@newlines=\count107
-\lst@lineno=\count108
+\lst@newlines=\count108
+\lst@lineno=\count109
 \lst@maxwidth=\dimen115
 
-(/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty
-File: lstmisc.sty 2015/06/04 1.6 (Carsten Heinz)
-\c@lstnumber=\count109
-\lst@skipnumbers=\count110
-\lst@framebox=\box29
+(/usr/local/texlive/2019/texmf-dist/tex/latex/listings/lstmisc.sty
+File: lstmisc.sty 2019/02/27 1.8b (Carsten Heinz)
+\c@lstnumber=\count110
+\lst@skipnumbers=\count111
+\lst@framebox=\box30
 )
-(/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg
-File: listings.cfg 2015/06/04 1.6 listings configuration
+(/usr/local/texlive/2019/texmf-dist/tex/latex/listings/listings.cfg
+File: listings.cfg 2019/02/27 1.8b listings configuration
 ))
-Package: listings 2015/06/04 1.6 (Carsten Heinz)
+Package: listings 2019/02/27 1.8b (Carsten Heinz)
 
-(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
-Package: geometry 2010/09/12 v5.6 Page Geometry
+(/usr/local/texlive/2019/texmf-dist/tex/latex/geometry/geometry.sty
+Package: geometry 2018/04/16 v5.8 Page Geometry
 
-(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
-Package: ifpdf 2017/03/15 v3.2 Provides the ifpdf switch
+(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/ifpdf.sty
+Package: ifpdf 2018/09/07 v3.3 Provides the ifpdf switch
 )
-(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
+(/usr/local/texlive/2019/texmf-dist/tex/generic/oberdiek/ifvtex.sty
 Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
 Package ifvtex Info: VTeX not detected.
 )
-(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
+(/usr/local/texlive/2019/texmf-dist/tex/generic/ifxetex/ifxetex.sty
 Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
 )
-\Gm@cnth=\count111
-\Gm@cntv=\count112
-\c@Gm@tempcnt=\count113
+\Gm@cnth=\count112
+\Gm@cntv=\count113
+\c@Gm@tempcnt=\count114
 \Gm@bindingoffset=\dimen116
 \Gm@wd@mp=\dimen117
 \Gm@odd@mp=\dimen118
@@ -145,41 +145,43 @@ Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
 \Gm@layoutvoffset=\dimen123
 \Gm@dimlist=\toks21
 )
-(/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty
-Package: array 2016/10/06 v2.4d Tabular extension package (FMi)
+(/usr/local/texlive/2019/texmf-dist/tex/latex/tools/array.sty
+Package: array 2018/12/30 v2.4k Tabular extension package (FMi)
 \col@sep=\dimen124
+\ar@mcellbox=\box31
 \extrarowheight=\dimen125
 \NC@list=\toks22
 \extratabsurround=\skip48
 \backup@length=\skip49
+\ar@cellbox=\box32
 )
-(/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty
-Package: longtable 2014/10/28 v4.11 Multi-page Table package (DPC)
+(/usr/local/texlive/2019/texmf-dist/tex/latex/tools/longtable.sty
+Package: longtable 2014/10/28 v4.11 Multi-page Table package (DPC)+ FMi change
 \LTleft=\skip50
 \LTright=\skip51
 \LTpre=\skip52
 \LTpost=\skip53
-\LTchunksize=\count114
+\LTchunksize=\count115
 \LTcapwidth=\dimen126
-\LT@head=\box30
-\LT@firsthead=\box31
-\LT@foot=\box32
-\LT@lastfoot=\box33
-\LT@cols=\count115
-\LT@rows=\count116
-\c@LT@tables=\count117
-\c@LT@chunks=\count118
+\LT@head=\box33
+\LT@firsthead=\box34
+\LT@foot=\box35
+\LT@lastfoot=\box36
+\LT@cols=\count116
+\LT@rows=\count117
+\c@LT@tables=\count118
+\c@LT@chunks=\count119
 \LT@p@ftn=\toks23
 )
-(/usr/share/texlive/texmf-dist/tex/latex/was/gensymb.sty
+(/usr/local/texlive/2019/texmf-dist/tex/latex/was/gensymb.sty
 Package: gensymb 2003/07/02 v1.0 (WaS)
 )
-(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty
-Package: caption 2016/02/21 v3.3-144 Customizing captions (AR)
+(/usr/local/texlive/2019/texmf-dist/tex/latex/caption/caption.sty
+Package: caption 2018/10/06 v3.3-154 Customizing captions (AR)
 
-(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty
-Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR)
-Package caption3 Info: TeX engine: e-TeX on input line 67.
+(/usr/local/texlive/2019/texmf-dist/tex/latex/caption/caption3.sty
+Package: caption3 2018/09/12 v1.8c caption3 kernel (AR)
+Package caption3 Info: TeX engine: e-TeX on input line 64.
 \captionmargin=\dimen127
 \captionmargin@=\dimen128
 \captionwidth=\dimen129
@@ -188,12 +190,13 @@ Package caption3 Info: TeX engine: e-TeX on input line 67.
 \caption@parindent=\dimen132
 \caption@hangindent=\dimen133
 )
-\c@ContinuedFloat=\count119
+\c@caption@flags=\count120
+\c@ContinuedFloat=\count121
 Package caption Info: listings package is loaded.
 Package caption Info: longtable package is loaded.
 
-(/usr/share/texlive/texmf-dist/tex/latex/caption/ltcaption.sty
-Package: ltcaption 2013/06/09 v1.4-94 longtable captions (AR)
+(/usr/local/texlive/2019/texmf-dist/tex/latex/caption/ltcaption.sty
+Package: ltcaption 2018/08/26 v1.4-95 longtable captions (AR)
 ))
 
 Package geometry Warning: Over-specification in `h'-direction.
@@ -218,7 +221,7 @@ LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 46.
 LaTeX Font Info:    ... okay on input line 46.
 LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 46.
 LaTeX Font Info:    ... okay on input line 46.
-\c@lstlisting=\count120
+\c@lstlisting=\count122
 
 *geometry* driver: auto-detecting
 *geometry* detected driver: pdftex
@@ -270,10 +273,10 @@ Package caption Info: End \AtBeginDocument code.
 [1
 
 
-{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
+{/usr/local/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
 LaTeX Font Info:    Try loading font information for OML+cmr on input line 66.
 
-(/usr/share/texlive/texmf-dist/tex/latex/base/omlcmr.fd
+(/usr/local/texlive/2019/texmf-dist/tex/latex/base/omlcmr.fd
 File: omlcmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
 )
 LaTeX Font Info:    Font shape `OML/cmr/m/n' in size <10> not available
@@ -334,49 +337,50 @@ Underfull \hbox (badness 2065) in paragraph at lines 375--376
  []
 
 
-Overfull \hbox (14.67734pt too wide) in alignment at lines 372--416
+Overfull \hbox (14.67734pt too wide) in alignment at lines 372--414
  [] [] 
  []
 
 [6]
-Overfull \hbox (14.67734pt too wide) in alignment at lines 416--461
+Overfull \hbox (14.67734pt too wide) in alignment at lines 414--461
  [] [] 
  []
 
 [7]
-Overfull \hbox (14.67734pt too wide) in alignment at lines 461--469
+Overfull \hbox (14.67734pt too wide) in alignment at lines 461--479
  [] [] 
  []
 
 [8]
-LaTeX Font Info:    Try loading font information for OMS+cmr on input line 496.
+LaTeX Font Info:    Try loading font information for OMS+cmr on input line 506.
 
- (/usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd
+ (/usr/local/texlive/2019/texmf-dist/tex/latex/base/omscmr.fd
 File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions
 )
 LaTeX Font Info:    Font shape `OMS/cmr/m/n' in size <10> not available
-(Font)              Font shape `OMS/cmsy/m/n' tried instead on input line 496.
+(Font)              Font shape `OMS/cmsy/m/n' tried instead on input line 506.
  [9]
 (./users_guide.aux) ) 
 Here is how much of TeX's memory you used:
- 3926 strings out of 492982
- 58072 string characters out of 6134896
- 156563 words of memory out of 5000000
- 7495 multiletter control sequences out of 15000+600000
+ 4393 strings out of 492609
+ 62611 string characters out of 6129047
+ 164304 words of memory out of 5000000
+ 8317 multiletter control sequences out of 15000+600000
  5995 words of font info for 22 fonts, out of 8000000 for 9000
  1141 hyphenation exceptions out of 8191
- 36i,8n,39p,563b,1088s stack positions out of 5000i,500n,10000p,200000b,80000s
-</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts
-/cm/cmbx12.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cm
-mi10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pf
-b></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr
-/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb></usr/share/
-texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/share/texlive/
-texmf-dist/fonts/type1/public/amsfonts/cm/cmsl10.pfb></usr/share/texlive/texmf-
-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/f
-onts/type1/public/amsfonts/cm/cmsy7.pfb></usr/share/texlive/texmf-dist/fonts/ty
-pe1/public/amsfonts/cm/cmti10.pfb>
-Output written on users_guide.pdf (9 pages, 163178 bytes).
+ 36i,8n,39p,563b,1214s stack positions out of 5000i,500n,10000p,200000b,80000s
+</usr/local/texlive/2019/texmf-dist/fonts/type1/public/ams
+fonts/cm/cmbx12.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsf
+onts/cm/cmmi10.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfo
+nts/cm/cmr10.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfont
+s/cm/cmr12.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/
+cm/cmr17.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm
+/cmr7.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cm
+sl10.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cms
+y10.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy
+7.pfb></usr/local/texlive/2019/texmf-dist/fonts/type1/public/amsfonts/cm/cmti10
+.pfb>
+Output written on users_guide.pdf (9 pages, 164369 bytes).
 PDF statistics:
  74 PDF objects out of 1000 (max. 8388607)
  52 compressed objects within 1 object stream
diff --git a/docs/users_guide.pdf b/docs/users_guide.pdf
index 0d3dbbb3e9974cc9b19b94f5b950c120a41dbd7f..2e48b49a3e3c283b72edaaabe95638d87dc10af3 100644
Binary files a/docs/users_guide.pdf and b/docs/users_guide.pdf differ
diff --git a/docs/users_guide.synctex.gz b/docs/users_guide.synctex.gz
index 3ee64cefc80bcd2fd41b4556742e93e1b34971fc..b9d79467542bf77353acb749211e8685ca2f871a 100644
Binary files a/docs/users_guide.synctex.gz and b/docs/users_guide.synctex.gz differ
diff --git a/docs/users_guide.tex b/docs/users_guide.tex
index fd7664dcbc8d788c30e9acbbf8c839d25ba6ce1a..7e023877a8f2623c95d94328580133bf074c8602 100644
--- a/docs/users_guide.tex
+++ b/docs/users_guide.tex
@@ -381,6 +381,8 @@ give significant speedup \\
 \hline
 \emph{backdiff} & Switch for background diffusivity by Hondzo and Stefan (1993); 1 -- off, 1 -- on \\
 \hline
+\emph{backdiff0} & A multiplier in background diffusivity expression by Hondzo and Stefan (1993), relevant if \emph{backdiff}=1; if \emph{backdiff0}$<$0., then a reference value from original paper is used \\
+\hline
 \emph{nManning} & Manning's coefficient, relevant for \emph{dyn\_pgrad}=5 \\
 \hline
 \emph{zero\_model} & Switch for zero-dimensional model: 0 -off, 1 - on \\
@@ -389,6 +391,14 @@ give significant speedup \\
 \hline
 \emph{soil\_meth\_prod} & Switch for new organics methane production under lakes: 1. - on, 0. - off \\
 \hline
+\emph{VmaxCH4aeroboxid} & Maximal methane aerobic oxidation rate in Monod equation throughout water column; if \emph{VmaxCH4aeroboxid}$<$0., then a reference value is used\\
+\hline
+\emph{khsCH4} & Methane half-saturation constant in methane aerobic oxidation rate in Monod equation throughout water column; if \emph{khsCH4}$<$0., then a reference value is used \\
+\hline
+\emph{khsO2} & Oxygen half-saturation constant in methane aerobic oxidation rate in Monod equation throughout water column; if \emph{khsO2}$<$0., then a reference value is used \\
+\hline
+\emph{r0methprod} & A constant multiplier in the expression for methane production in sediments; if \emph{r0methprod}$<$0., then a reference value is used \\
+\hline
 \emph{outflpar} & The treatment of effluent temperature: 0 - value at the outflow = cross-section mean; 1 - the cross-section mean = 0.5*(inflow value + outflow value); 2 - variables at the outflow are calculated using Lagrangian approach \\
 \hline
 \emph{sensflux0} & Sensible heat flux upwards, constant in time (relevant if PBLpar = 0), $W/m^2$ \\
diff --git a/driver_file.dat b/driver_file.dat
index 52a0fb23ee8285881047d0d01a947e2a66687b1e..91087485f9302313245b9d845fb213f6765400a5 100644
--- a/driver_file.dat
+++ b/driver_file.dat
@@ -1,2 +1,2 @@
 # The file with parameters for driver of the Lake model
-setup/Mojai2016-2017_driver.dat
+setup/testlake_driver.dat
\ No newline at end of file
diff --git a/setup/testlake_setup.dat b/setup/testlake_setup.dat
index d96166daaf21952fbb039d519c93a54fe2a21d84..3612db5da2c28c6d56d8bffade3404ba2d60961f 100644
--- a/setup/testlake_setup.dat
+++ b/setup/testlake_setup.dat
@@ -150,10 +150,15 @@ pgrad    0.
 nManning 5.E-2
 horvisc  0.
 backdiff 0
+backdiff0 8.17E-4
 botfric  1
 zero_model 0
 thermokarst_meth_prod 0.
 soil_meth_prod 1.
+VmaxCH4aeroboxid 1.15E-7
+khsCH4 3.75E-2
+khsO2 2.1E-2
+r0methprod 6.E-8
 outflpar 0
 #
 sensflux0 100.
diff --git a/setup_file.dat b/setup_file.dat
index 0d70e77af85f4b9d218abc1500326efbad128192..077f3395b9568848c03cdadb82971a34dd727779 100644
--- a/setup_file.dat
+++ b/setup_file.dat
@@ -1,2 +1,2 @@
 # The file with parameters for setup of the experiment
-setup/Mojai2016-2017_setup.dat
+setup/testlake_setup.dat
\ No newline at end of file
diff --git a/source/Makefile b/source/Makefile
index d0a1ff6a73d776b5538d341636f08c7a1e59df16..097572a9e06b5940d96a88f2103f10e70532f005 100644
--- a/source/Makefile
+++ b/source/Makefile
@@ -1,7 +1,7 @@
 # Compiling source files of LAKE model
 
- FC=ifort#mpif90
- #FC=gfortran
+ #FC=ifort#mpif90
+ FC=gfortran
  EXEC = lake.out
 
  INCLPATHS = 
@@ -25,9 +25,9 @@
    #opt_keys = -fopenmp -O3 #-fp-model source
    #check_keys = -g -Wall -Warray-temporaries -Wconversion  -fbacktrace -ffree-line-length-0 -fcheck=all -ffpe-trap=invalid,zero,overflow,underflow -finit-real=nan
    #check_keys = -g -ffpe-trap=invalid,zero,overflow,denormal -fcheck=all -fbacktrace
-   check_keys = -g -ffpe-trap=invalid,zero,overflow -fcheck=all -fbacktrace
+   check_keys = #-g -ffpe-trap=invalid,zero,overflow -fcheck=all -fbacktrace
    #check_keys = -g  -fcheck=all -fbacktrace
-   #check_keys = -fbacktrace
+   check_keys = -fopenmp -O3 -fbacktrace
  endif
 
  objfiles_path = ../objfiles/
diff --git a/source/model/driving_params_mod.f90 b/source/model/driving_params_mod.f90
index b12b43fa355f82c75672416b8671e46f3458034f..060e5461748e14b3ba1a287b832c4cafd3be82e5 100644
--- a/source/model/driving_params_mod.f90
+++ b/source/model/driving_params_mod.f90
@@ -25,7 +25,7 @@ type, public :: intpar
 end type
 
 integer(kind=iintegers), parameter :: numder = 42 ! Number derived-type model integer controls  handled in unified manner
-integer(kind=iintegers), parameter :: numder_real = 17 ! The same, but real controls
+integer(kind=iintegers), parameter :: numder_real = 22 ! The same, but real controls
 
 real(kind=ireals), parameter :: missing_value = -999.
 
@@ -63,6 +63,11 @@ type(realpar), target :: nManning
 type(realpar), target :: horvisc
 type(realpar), target :: zserout
 type(realpar), target :: pgrad
+type(realpar), target :: backdiff0
+type(realpar), target :: VmaxCH4aeroboxid
+type(realpar), target :: khsCH4
+type(realpar), target :: khsO2
+type(realpar), target :: r0methprod
   
 real(kind=ireals) :: dttribupdate = missing_value
 
@@ -230,6 +235,11 @@ if (firstcall) then
   dertypepar_real(15)%p => horvisc
   dertypepar_real(16)%p => zserout
   dertypepar_real(17)%p => pgrad
+  dertypepar_real(18)%p => backdiff0
+  dertypepar_real(19)%p => VmaxCH4aeroboxid
+  dertypepar_real(20)%p => khsCH4
+  dertypepar_real(21)%p => khsO2
+  dertypepar_real(22)%p => r0methprod
 
   dertypepar(1)%p => stabfunc
   dertypepar(2)%p => tribheat
@@ -292,6 +302,11 @@ if (firstcall) then
   horvisc%name = 'horvisc'
   zserout%name = 'zserout'
   pgrad%name = 'pgrad'
+  backdiff0%name = 'backdiff0'
+  VmaxCH4aeroboxid%name = 'VmaxCH4aeroboxid'
+  khsCH4%name = 'khsCH4'
+  khsO2%name = 'khsO2'
+  r0methprod%name = 'r0methprod'
 
   stabfunc%name = 'stabfunc' ; 
 
diff --git a/source/model/lake_modules.f90 b/source/model/lake_modules.f90
index abc6914e0c9b031d17b2b34095baabe57c2e9b9e..1fde2a0ec85e27c5201305d8f8da1fd776b71745 100644
--- a/source/model/lake_modules.f90
+++ b/source/model/lake_modules.f90
@@ -1702,7 +1702,7 @@ real(kind=ireals), protected :: delta_Eq ! activation energy for methane oxidati
 real(kind=ireals), protected :: Vmaxw  ! reaction potential in oxygen-saturated Michaelis-Menten kinetics, 
                                        ! after (Liikanen et al., 2002)
 real(kind=ireals), protected :: k_ch40 ! half-saturation constant in oxygen-saturated Michaelis-Menten kinetics, 
-                               ! after (Liikanen et al., 2002)
+                                       ! after (Liikanen et al., 2002)
 
 real(kind=ireals), protected :: koxyg ! Methane oxidation constant in 1-st order kinetics, (Striegl et al., 1998)
 
@@ -1844,7 +1844,7 @@ real(kind=ireals), protected :: Chla_to_extinct !linear dependence coefficient o
 
 contains
 SUBROUTINE SET_METH_OXYG_CONSTANTS
-use DRIVING_PARAMS, only : nsoilcols_
+use DRIVING_PARAMS, only : nsoilcols_, r0methprod
 implicit none
 pH = 6. !The pH of the water in a lake, assumed to be constant
 
@@ -1967,6 +1967,10 @@ allocate(r0_methprod_phot   (1:nsoilcols_%par))
 allocate(r0_methprod_nonphot(1:nsoilcols_%par))
 r0_methprod_phot   (:) = 6.d-8 ! the constant for CH_4 production in    photic zone, mol/(m**3*s)
 r0_methprod_nonphot(:) = 6.d-8 ! the constant for CH_4 production below photic zone, mol/(m**3*s)
+if (r0methprod%par >= 0.) then
+  r0_methprod_phot   (:) = r0methprod%par 
+  r0_methprod_nonphot(:) = r0methprod%par 
+endif
 
 forg0 = 0.857        ! the constant in depth dependence of methane production rate
 lambda_new_org = 3. !5. in Walter & Heimann model, 
diff --git a/source/model/methane_mod.f90 b/source/model/methane_mod.f90
index 5d20cb9b62b147b1d5760195a8161bea5f51286a..b71925ae567380f036139e3d3bc1a75918c5fd07 100644
--- a/source/model/methane_mod.f90
+++ b/source/model/methane_mod.f90
@@ -1097,7 +1097,8 @@ endif ifdeep
  SUBROUTINE METHANE_OXIDATION &
  & (M, i_maxN, dt, ddz, h1, bathymwater, oxyg, qwater, DIC, Tw, qwateroxidtot, qwateroxidML)
  
- use METH_OXYG_CONSTANTS
+ use METH_OXYG_CONSTANTS, only : Vmaxw, k_ch4, k_ch40, k_o2, koxyg
+ use DRIVING_PARAMS, only : VmaxCH4aeroboxid, khsCH4, khsO2
  use ARRAYS_BATHYM, only : bathym
  use PHYS_FUNC, only : &
  & REACPOT_ARRHEN 
@@ -1130,8 +1131,20 @@ endif ifdeep
  integer(kind=iintegers) :: i
  real(kind=ireals) :: x, xo2, xch4, exc, D, temp_K ! Work variables
  real(kind=ireals) :: qwater_old, oxyg_old
+ real(kind=ireals), save :: Vmax_CH4aeroboxid, khs_CH4, khs_O2
  real(kind=ireals), allocatable :: qwaterold(:)
+ logical, save :: firstcall = .true.
 
+ if (firstcall) then
+   !Reference values of methane oxidation constants
+   Vmax_CH4aeroboxid = Vmaxw
+   khs_CH4           = k_CH4
+   khs_O2            = k_O2
+   if (VmaxCH4aeroboxid%par >= 0.) Vmax_CH4aeroboxid = VmaxCH4aeroboxid%par
+   if (khsCH4%par           >= 0.) khs_CH4           = khsCH4%par          
+   if (khsO2%par            >= 0.) khs_O2            = khsO2%par           
+ endif
+ 
  allocate(qwaterold(1:M+1)) 
  qwaterold(:) = qwater(:)
  
@@ -1141,8 +1154,8 @@ endif ifdeep
    case (1)
      ! Full Michaelis-Menten
      temp_K = Tw(i) + Kelvin0
-     x = dt*Vmaxw & !REACPOT_ARRHEN(delta_Eq,temp_K,temp0,Vmaxw) & 
-     & /(k_o2 + oxyg(i))/(k_ch4 + qwater(i))
+     x = dt*Vmax_CH4aeroboxid & !REACPOT_ARRHEN(delta_Eq,temp_K,temp0,Vmaxw) & 
+     & /(khs_O2 + oxyg(i))/(khs_CH4 + qwater(i))
      D = 1. + 2.*x*(2.*qwater(i) + oxyg(i)) + &
      & x*x*(2.*qwater(i) - oxyg(i))*(2.*qwater(i) - oxyg(i))
      oxyg_old = oxyg(i)
@@ -1205,14 +1218,9 @@ endif ifdeep
  endif
  qwateroxidML = qwateroxidML/bathymwater(1)%area_int
 
-!do i = 1, M+1
-!  if (qwater(i) > 1000.) then
-!    write(*,*) 'Methane! in oxidation'
-!  endif
-!enddo
-
  deallocate(qwaterold)
- 
+
+ if (firstcall) firstcall = .false. 
  END SUBROUTINE METHANE_OXIDATION
 
 
diff --git a/source/model/phys_func.f90 b/source/model/phys_func.f90
index e047353f4084702b5db9564d862cd98c90b0e06b..317e5ab729a078e3dc09d620da8ca489b58aaa99 100644
--- a/source/model/phys_func.f90
+++ b/source/model/phys_func.f90
@@ -1944,6 +1944,7 @@ END FUNCTION FP_THETA
   use ARRAYS_GRID, only : gridspacing_type
   use ARRAYS_WATERSTATE, only : waterstate_type
   use ARRAYS_BATHYM, only : layers_type
+  use DRIVING_PARAMS, only : backdiff0
   implicit none
   !Input/output variables
   real(kind=ireals)     , intent(in) :: area
@@ -1956,6 +1957,16 @@ END FUNCTION FP_THETA
   real(kind=ireals) :: x, y
 
   real(kind=ireals), parameter :: C1 = 8.17E-4, C2 = 0.56, C3 = -0.43, xmin = 7.E-5
+  real(kind=ireals), save :: z !A multiplier in expression for background diffusivity
+  logical, save :: firstcall = .true.
+
+  if (firstcall) then
+    if (backdiff0%par >= 0.) then
+      z = backdiff0%par 
+    else
+      z = C1 !default value
+    endif
+  endif
 
   do i = 1, M
     x = g/row0*(wst%row(i+1)-wst%row(i))/(ls%h1*gsp%ddz(i))
@@ -1968,11 +1979,10 @@ END FUNCTION FP_THETA
       wst%lamw_back(i) = wst%lamw_back(i) * 1.E-4 !converting from cm**2/s to m**2/s
       wst%lamw_back(i) = wst%lamw_back(i) * cw_m_row0
       wst%lamw_back(i) = wst%lamw_back(i) * 5.E-1 !Calibration multiplyer
-      !wst%lamw_back(i) = wst%lamw_back(i) * 5.E-1 !Calibration multiplyer, Lake Iseo
     endif
   enddo
-  !print*, maxval(wst%lamw_back(:))
 
+  if (firstcall) firstcall = .false.
   END SUBROUTINE DIFFMIN_HS
 
 
diff --git a/tools/plot_contour.py b/tools/plot_contour.py
index 9fde184ff8800af32d31ab95c7e01c1c54dd324c..ab3ae363806a3312bc3515ddbbec36a961ecc896 100644
--- a/tools/plot_contour.py
+++ b/tools/plot_contour.py
@@ -93,7 +93,7 @@ nmod_max = 12 #The last item in the list above, from the modeled data
 #Constants
 day_sec = 24.*60.*60.
 
-path = '../results/cuette/time_series/' # path to files
+path = '../results/testlake/time_series/' # path to files
 #pathobs = os.path.expanduser('/media/victor/main/Files/main/observdata/Iseo/')
 pathobs = os.path.expanduser('/home/victor/Files/main/observdata/Iseo/')
 #pathobs = os.path.expanduser('/media/victor/main/Files/main/observdata/Kuivajarvi/Kuiva2014sept_campaign/')