diff --git a/README.md b/README.md
index 9079402243589f4e1be3ee94716515554da6b9dc..822f42887f2d2185f6c0b61d8dbd0fba2c23c21b 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ for (i,t) = enumerate(0:h:duration)
     @periodically h begin
         y[i] = measure(P)
         r[i] = reference(t)
-        u[i] = calc_control(i,y,r)
+        u[i] = calc_control(y,r)
         control(P, u[i])
     end
 end
@@ -77,7 +77,7 @@ care of updating remembering the state of the system when called.
 ```julia
 G1f = SysFilter(G1)
 G4f = SysFilter(G4)
-function control(i)
+function calc_control(y,r)
     rf = G4f(r)
     e  = rf-y
     u  = G1f(e)
diff --git a/docs/make.jl b/docs/make.jl
index 7e696a5ee95816a6434206f9343a688e0c96a874..efb13107f963e82390d7e6b4d4baf8267df0114c 100644
--- a/docs/make.jl
+++ b/docs/make.jl
@@ -13,6 +13,7 @@ makedocs(
     sitename = "LabProcesses",
     pages = [
         "index.md",
+        "README.md"
     ]
 )