diff --git a/writefile.py b/writefile.py
index 8c1f606158e3385ac6341b2a6d9d0b3a2603abab..a39c2efaa231941b2d477cc89583716616eab934 100644
--- a/writefile.py
+++ b/writefile.py
@@ -63,8 +63,12 @@ def getVariantType(datatype):
 
 
 with open("config.toml", "rb") as t:
+    """
+    opens toml config file to access its data
+    """
     toml_dict = tomli.load(t)
 
+#sets opcua-server address and namespace according to config file 
 server_endpoint = toml_dict['server']
 namespace = toml_dict['namespace']
 
@@ -272,7 +276,7 @@ def writeparameter(parameterobj, headnode, enumnodedict, enumvaldict, enumvarian
 
 def writefunction(functionobj, headnode):
     """
-    Takkes the function objects writes the function body by calling deffunction and adds it to the objecttypes
+    Takes the function objects writes the function body by calling deffunction and adds it to the objecttypes
     :param functionobj: List of functionobjects
     :param headnode: component the functions belong to
     :return: None