diff --git a/pure code not instalable as environment/workspaces/jupyter/Iq_processor.ipynb b/pure code not instalable as environment/workspaces/jupyter/Iq_processor.ipynb
index 5fd0d6f803967540fc2360580d52ec4c07cd3038..3f460d554c2ca7a3fb77d4ab2c84708a3014cce3 100644
--- a/pure code not instalable as environment/workspaces/jupyter/Iq_processor.ipynb	
+++ b/pure code not instalable as environment/workspaces/jupyter/Iq_processor.ipynb	
@@ -4,22 +4,22 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "# Take I(q) data, background subtract it, view and tranform to PDF\n",
+    "# Take I(q) data, perform background subtraction, view and transform to PDF\n",
     "\n",
     "This script:\n",
-    "- Takes I(q) data (normally in .dat or .chi format) and temperature and time from metadat (alternativly takes temperature also from .csv).\n",
+    "- Takes I(q) data (normally in .dat or .chi format) as well as temperature and time from metadats (alternatively temperature data can be read from .csv files).\n",
     "- Subtracts (temperature dependent) background from sample data.\n",
     "- Uses a PDF optimization algorithm to get the best background subtraction.\n",
     "- Generates batch optimized PDFs\n",
-    "- Lets you see the time and or temperature dependend XRD pattern\n",
-    "- Lets you compare XRD with references from .cif\n",
+    "- Allows you to see the time and or temperature dependent XRD pattern\n",
+    "- Allows you to compare XRD pattern with references from .cif files\n",
     "\n",
     "Integrated functions:\n",
-    "- Averaging whole background data to one file (with start and end index)\n",
-    "- Seperation of multistep backgrounds into single slopes\n",
+    "- Averaging a complete background data set to one file (with start and end index)\n",
+    "- Separation of multistep backgrounds into single slopes\n",
     "\n",
     "<div class=\"alert alert-block alert-info\">\n",
-    "<b>Note:</b> This is a batch processing tool. To get propper PDF input parameters use xPDFsuite on the final product of the reaction.\n",
+    "<b>Note:</b> This is a batch processing tool. To determine proper PDF input parameters use the software xPDFsuite on the final product of the reaction.\n",
     "</div>"
    ]
   },
@@ -43,7 +43,7 @@
     {
      "data": {
       "text/markdown": [
-       " Last changed done: 2025-05-06"
+       " Last change done: 2025-05-07"
       ],
       "text/plain": [
        "<IPython.core.display.Markdown object>"
@@ -61,7 +61,7 @@
     "todays_date = str(datetime.now().date())\n",
     "\n",
     "display(Markdown('### Change note'))\n",
-    "display(Markdown(f' Last changed done: {todays_date}'))"
+    "display(Markdown(f' Last change done: {todays_date}'))"
    ]
   },
   {
@@ -102,19 +102,19 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 3,
+   "execution_count": null,
    "metadata": {},
    "outputs": [],
    "source": [
-    "# BG file name (directories for integrated data and metadata should be keept constant throughout the beamtime)\n",
+    "# Background file name (directories for integrated data and metadata should be kept constant throughout the beamtime)\n",
     "bg_sampleName = 'lk_zns_background_insitu_oaws_1_00001-00001' #filename \n",
     "bg_path = r'C:\\Users\\admin\\Nextcloud\\MyData\\bt_1222\\in_situ_reactions\\varex\\data\\lk_zns_background_insitu_oaws_1_00001\\\\' #integrated data path\n",
-    "bg_tempPath = r'C:\\Users\\admin\\Nextcloud\\MyData\\bt_1222\\in_situ_reactions\\varex\\metadata\\lk_zns_background_insitu_oaws_1_00001\\\\' #metadat path\n",
+    "bg_tempPath = r'C:\\Users\\admin\\Nextcloud\\MyData\\bt_1222\\in_situ_reactions\\varex\\metadata\\lk_zns_background_insitu_oaws_1_00001\\\\' #metadata path\n",
     "\n",
-    "# Measurment file name (directories for integrated data and metadata should be keept constant throughout the beamtime)\n",
+    "# Measurement file name (directories for integrated data and metadata should be kept constant throughout the beamtime)\n",
     "meas_sampleName = 'lk_zns_insitu_1_00001'  #filename\n",
     "meas_path = r'C:\\Users\\admin\\Nextcloud\\MyData\\bt_1222\\in_situ_reactions\\varex\\data\\Original\\lk_zns_insitu_1_00001\\\\' #integrated data path\n",
-    "meas_tempPath =  r'C:\\Users\\admin\\Nextcloud\\MyData\\bt_1222\\in_situ_reactions\\varex\\metadata\\lk_zns_insitu_1_00001\\\\' #metadat path\n",
+    "meas_tempPath =  r'C:\\Users\\admin\\Nextcloud\\MyData\\bt_1222\\in_situ_reactions\\varex\\metadata\\lk_zns_insitu_1_00001\\\\' #metadata path\n",
     "\n",
     "\n",
     "single_BG_file=r'C:/Users/admin/Nextcloud/MyData/bt_1222/in_situ_reactions/varex/data/Normed_and_Averaged/lk_zns_background_insitu_oaws_1_00001_002-n=None/lk_zns_background_insitu_oaws_1_00001-17040.chi'"
@@ -122,21 +122,21 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 4,
+   "execution_count": null,
    "metadata": {},
    "outputs": [],
    "source": [
-    "# BG file name (directories for integrated data and metadata should be keept constant throughout the beamtime)\n",
+    "# Background file name (directories for integrated data and metadata should be kept constant throughout the beamtime)\n",
     "bg_sampleName = 'run57_bkg_BnOH' #filename \n",
     "bg_path = r'D:\\Beamtimes\\bt_P21.1_october_24\\run57_bkg_BnOH\\\\' #integrated data path\n",
     "bg_timePath = r\"D:\\Beamtimes\\bt_P21.1_october_24\\time_data\\\\run57_bkg_BnOH\\\\\"\n",
-    "bg_tempPath = r'D:\\Beamtimes\\bt_P21.1_october_24\\temperature_data\\\\run57_bkg_BnOH.csv' #metadat path\n",
+    "bg_tempPath = r'D:\\Beamtimes\\bt_P21.1_october_24\\temperature_data\\\\run57_bkg_BnOH.csv' #metadata path\n",
     "\n",
-    "# Measurment file name (directories for integrated data and metadata should be keept constant throughout the beamtime)\n",
+    "# Measurement file name (directories for integrated data and metadata should be kept constant throughout the beamtime)\n",
     "meas_sampleName = 'run66_reactionNP4'  #filename\n",
     "meas_path = r'D:\\Beamtimes\\bt_P21.1_october_24\\run66_reactionNP4\\\\' #integrated data path\n",
     "meas_timePath = r\"D:\\Beamtimes\\bt_P21.1_october_24\\time_data\\run66_reactionNP4\\\\\"\n",
-    "meas_tempPath =  r'D:\\Beamtimes\\bt_P21.1_october_24\\temperature_data\\\\run66_reactionNP4.csv' #metadat path"
+    "meas_tempPath =  r'D:\\Beamtimes\\bt_P21.1_october_24\\temperature_data\\\\run66_reactionNP4.csv' #metadata path"
    ]
   },
   {
@@ -148,7 +148,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 5,
+   "execution_count": null,
    "metadata": {},
    "outputs": [],
    "source": [
@@ -159,9 +159,9 @@
     "counter_PDF = {'time': 'dateString=',\n",
     "               'temperature': 'userComment1=\"Temp: '}\n",
     "\n",
-    "ends_with = '.dat' # this can differe for differnet live integrations used, but should be the same for one beamtime\n",
+    "ends_with = '.dat' # this can differ for different live integrations used, but should be the same for one beamtime\n",
     "\n",
-    "# You can crop the data if nescissary, anyhow the BG-subtration discards pre ramp\n",
+    "# You can crop the data if necessary, anyhow the BG-subtration discards pre ramp\n",
     "# and cooldown data if not changed in the options\n",
     "startScan = 0\n",
     "endScan = 1e10 # Default setting for normal temperature ramps"
@@ -198,23 +198,23 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 8,
+   "execution_count": null,
    "metadata": {},
    "outputs": [],
    "source": [
-    "ramp_start_temp = 30 #set a little bit higher than baseline temperature from which the measurment or bg started\n",
-    "plato_start_temp = 120 #temperatur on which to stay in °C\n",
+    "ramp_start_temp = 30 #set a little bit higher than baseline temperature from which the measurement or background started\n",
+    "plato_start_temp = 120 #temperature on which to stay in °C\n",
     "average = 240  #number of scans to average over\n",
     "Qmaxinst = 21  #Qmax at which the mask sets in \n",
-    "FactorMax = 1.2 # Maximum factor allowed for the BG subtraction\n",
-    "use_PDF_maximization = True # Use the  monte carlo PDF maximization strategy\n",
+    "FactorMax = 1.2 # Maximum factor allowed for the background subtraction\n",
+    "use_PDF_maximization = True # Use the monte carlo PDF maximization strategy\n",
     "\n",
-    "# Correction factors to subtract as well empty glas to counter deviations in cell manufacturing\n",
+    "# Correction factors to subtract empty glass as well to counter deviations in cell manufacturing\n",
     "empty_glas_int = 0 # -0.0009683967395722652#-0.01#*(1/120) #0.01 # 0.014 #0.0210336\n",
     "empty_glas = None #'C:/Users/admin/Nextcloud/Beamtimes/bt_0423/XRD_detailed/empty_ac_cell_inlet_180_10_Av120.chi'\n",
     "\n",
-    "scatter_supression = 0.0001 # Small correction to dampen deviations from the BG subtraction calculated factor. \n",
-    "# Currently I try to solve this problem by looking at high r Fourier noise, as this approche was not the best way to counter the problem.\n"
+    "scatter_supression = 0.0001 # Small correction to dampen deviations from the background subtraction calculated factor. \n",
+    "# Currently I try to solve this problem by looking at high r Fourier noise, as this approach was not the best way to counter the problem.\n"
    ]
   },
   {
@@ -226,17 +226,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 9,
+   "execution_count": null,
    "metadata": {},
    "outputs": [],
    "source": [
-    "Composition = 'CuS' # material the PDF should focus on (NP material)\n",
-    "Qmaxinst_integrate = 21 #Q at which in the XRD peaks dominate over the noise (Qmaxinst from xPDF)\n",
-    "Qmax = 16 #Qmax that the PDF will process\n",
-    "Qmin = 2.6 #minimal Q normally allways around 0.1\n",
+    "Composition = 'CuS' # material the PDF should focus on (Nanoparticle material)\n",
+    "Qmaxinst_integrate = 21 #Q value at which peaks from material dominate over the noise in the XRD pattern (Qmaxinst from xPDFsuite)\n",
+    "Qmax = 16 #maximum Q value that the PDF will process\n",
+    "Qmin = 2.6 #minimal Q value, normally allways around 0.1\n",
     "Rmin = 0.5\n",
     "Rmax = 30 #maximal R to process the PDF to\n",
-    "Rpoly = 1.7 #polynomal degree which affects getPDFx bg subtraction"
+    "Rpoly = 1.7 #polynomial degree which affects PDFgetx3 background subtraction"
    ]
   },
   {
@@ -252,20 +252,20 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "#### Average multiple background files and only use thoose \n",
+    "#### Average multiple background files and only use those \n",
     "<font color='red'>Only run this code if applicable for you data.</font> Otherwise skip or comment out."
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 10,
+   "execution_count": null,
    "metadata": {},
    "outputs": [],
    "source": [
     "# av_folder =bg_path\n",
     "# single_BG_file = r\"C:\\Users\\admin\\Nextcloud\\Beamtimes\\\\\"\n",
     "# take_scans = \"all\"\n",
-    "# # Run this line only if you want to take a single background file\n",
+    "# # Run this line only if you want to use a single background file\n",
     "# q_av_bg, I_av_bg = AverageIqFilesInFolder(av_folder, single_BG_file)  "
    ]
   },
@@ -273,7 +273,7 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "Only include `target_temp` and `temp_platos` if your background was run with multiple background platos in one and not seperated for each temperature."
+    "Only include `target_temp` and `temp_platos` if your background was run with multiple background platos in one and not separated for each temperature."
    ]
   },
   {
@@ -291,7 +291,7 @@
    "metadata": {},
    "source": [
     "#### Load full temperature dependend background series  \n",
-    "<font color='red'>Comment out above averaging if you want to use this instead.</font><font color='#34deeb'> Depending on your solvent this can give much better results, but be carefull if you have precursor salts present. If they form side products the background can differ alot from the chemistry in the real sample in the in-situ run. </font> "
+    "<font color='red'>Comment out the above averaging code if you want to use this instead.</font><font color='#34deeb'> Depending on your solvent this can give much better results, but be careful if you have precursor salts present. If they form side products the background can differ a lot from the chemistry in the real sample in the in-situ run. </font> "
    ]
   },
   {
@@ -320,8 +320,8 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "##### Plot cutted background\n",
-    "<font color='red'>Only run this if it applies for you background data.</font> If each temperature for ypour background was recorded seperatly this is not needed."
+    "##### Plot cropped background\n",
+    "<font color='red'>Only run this if it applies to your background data.</font> If each temperature for ypour background was recorded separately this is not needed."
    ]
   },
   {
@@ -348,7 +348,7 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "##### Save and export loaded background data to .mat and .dat for fast reload and processing"
+    "##### Save and export loaded background data to .mat and .dat for fast reloading and processing"
    ]
   },
   {
@@ -403,7 +403,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 15,
+   "execution_count": null,
    "metadata": {},
    "outputs": [
     {
@@ -418,12 +418,12 @@
    ],
    "source": [
     "\n",
-    "# Get the start, end of ramps and platos (here for the BG) \n",
+    "# Get the start, end of ramps and plateaus (here for the BG) \n",
     "bg.getTempPoints(ramp_start_temp,plato_start_temp)\n",
     "\n",
-    "# Heat ranges are a dict of these just calculated temperature points\n",
+    "# Heat ranges are a dict of the just calculated temperature points\n",
     "bg_heat_ranges = {  \"ramp1_start\": bg.rampstart_index,   \n",
-    "                    \"ramp1_end\": int(bg.platostart_index), #Sometimes the ramps dont match due to rounding error, needs little correction by +- half average \n",
+    "                    \"ramp1_end\": int(bg.platostart_index), #Sometimes the ramps dont match due to rounding errors, needs little correction by +- half average \n",
     "                    \"ramp2_start\": 100000,\n",
     "                    \"ramp2_end\": 100000,}\n",
     "\n",
@@ -477,7 +477,7 @@
    "cell_type": "markdown",
    "metadata": {},
    "source": [
-    "##### Save and export loaded sample data to .mat and .dat for fast reload and processing"
+    "##### Save and export loaded sample data to .mat and .dat for fast reloading and processing"
    ]
   },
   {
@@ -899,7 +899,7 @@
  ],
  "metadata": {
   "kernelspec": {
-   "display_name": "XDiff",
+   "display_name": "pdfgui",
    "language": "python",
    "name": "python3"
   },
@@ -913,7 +913,7 @@
    "name": "python",
    "nbconvert_exporter": "python",
    "pygments_lexer": "ipython3",
-   "version": "3.8.16"
+   "version": "3.13.2"
   }
  },
  "nbformat": 4,