diff --git a/soitool/setup_settings.py b/soitool/setup_settings.py
index cef6c520e757229a4123e8feb45e977ee4d8565b..3fef0c0c7d804eeff898b060f91a7e56ea68fa95 100644
--- a/soitool/setup_settings.py
+++ b/soitool/setup_settings.py
@@ -8,74 +8,74 @@ from PySide2.QtWidgets import QDialog, QVBoxLayout, QHBoxLayout, QFormLayout, \
     QLabel, QLineEdit, QRadioButton, QPushButton
 
 
-class Setup(QDialog):
+class Setup(QDialog):  # pylint: disable = R0902
     """Contains the settings for the SOI."""
 
-    def __init__(self):  # pylint: disable = R0914, R0915
+    def __init__(self):  # pylint: disable = R0915
         super().__init__()
-        layout_setup = QVBoxLayout()
-        layout_buttons = QHBoxLayout()
-        layout_header = QFormLayout()
-        layout_paper_orientation = QFormLayout()
-        layout_algorithm = QFormLayout()
-        layout_module_placement = QFormLayout()
+        self.layout_setup = QVBoxLayout()
+        self.layout_buttons = QHBoxLayout()
+        self.layout_header = QFormLayout()
+        self.layout_paper_orientation = QFormLayout()
+        self.layout_algorithm = QFormLayout()
+        self.layout_module_placement = QFormLayout()
 
-        # Oppsett overskrift større font, underoverskrifter understreket
-        label_setup = QLabel("Oppsett")
+        # Labels for headings
+        self.label_setup = QLabel("Oppsett")
         # setup.setStyleSheet("font: 12pt")
-        label_header = QLabel("Headerdata")
-        label_paper_orientation = QLabel("Papirretning")
-        label_algorithm = QLabel("Plasseringsalgoritme")
-        label_module_placement = QLabel("Modulplassering")
+        self.label_header = QLabel("Headerdata")
+        self.label_paper_orientation = QLabel("Papirretning")
+        self.label_algorithm = QLabel("Plasseringsalgoritme")
+        self.label_module_placement = QLabel("Modulplassering")
 
-        layout_setup.addWidget(label_setup)
+        self.layout_setup.addWidget(self.label_setup)
 
         # Headerdata
-        layout_setup.addWidget(label_header)
-        head1 = QLabel("Header1")  # Endre variabelnavn på disse
-        head2 = QLabel("Header2")  # Endre variabelnavn på disse
-        hline1 = QLineEdit()    # Endre variabelnavn på disse
-        hline2 = QLineEdit()    # Endre variabelnavn på disse
-        layout_header.addRow(head1, hline1)
-        layout_header.addRow(head2, hline2)
-        layout_setup.addLayout(layout_header)
+        self.layout_setup.addWidget(self.label_header)
+        self.head1 = QLabel("Header1")  # Change variablename later
+        self.head2 = QLabel("Header2")  # Change variablename later
+        self.hline1 = QLineEdit()    # Change variablename later
+        self.hline2 = QLineEdit()    # Change variablename later
+        self.layout_header.addRow(self.head1, self.hline1)
+        self.layout_header.addRow(self.head2, self.hline2)
+        self.layout_setup.addLayout(self.layout_header)
 
         # Paperorientation
-        layout_setup.addWidget(label_paper_orientation)
-        pob1 = QRadioButton()  # Endre variabelnavn på disse
-        pob2 = QRadioButton()  # Endre variabelnavn på disse
-        layout_paper_orientation.addRow(pob1, QLabel("Horisontal (default)"))
-        layout_paper_orientation.addRow(pob2, QLabel("Vertikal"))
-        layout_setup.addLayout(layout_paper_orientation)
+        self.layout_setup.addWidget(self.label_paper_orientation)
+        self.pob1 = QRadioButton()  # Change variablename later
+        self.pob2 = QRadioButton()  # Change variablename later
+        self.layout_paper_orientation.addRow(self.pob1, QLabel("Horisontal"))
+        self.layout_paper_orientation.addRow(self.pob2, QLabel("Vertikal"))
+        self.layout_setup.addLayout(self.layout_paper_orientation)
 
         # Placement algorithm
-        layout_setup.addWidget(label_algorithm)
-        pb1 = QRadioButton()  # Endre variabelnavn på disse
-        pb2 = QRadioButton()  # Endre variabelnavn på disse
-        pb3 = QRadioButton()  # Endre variabelnavn på disse
-        pb4 = QRadioButton()  # Endre variabelnavn på disse
-        layout_algorithm.addRow(pb1, QLabel("Alg1"))
-        layout_algorithm.addRow(pb2, QLabel("Alg2"))
-        layout_algorithm.addRow(pb3, QLabel("Alg3"))
-        layout_algorithm.addRow(pb4, QLabel("Alg4"))
-        layout_setup.addLayout(layout_algorithm)
+        self.layout_setup.addWidget(self.label_algorithm)
+        self.pb1 = QRadioButton()  # Change variablename later
+        self.pb2 = QRadioButton()  # Change variablename later
+        self.pb3 = QRadioButton()  # Change variablename later
+        self.pb4 = QRadioButton()  # Change variablename later
+        self.layout_algorithm.addRow(self.pb1, QLabel("Alg1"))
+        self.layout_algorithm.addRow(self.pb2, QLabel("Alg2"))
+        self.layout_algorithm.addRow(self.pb3, QLabel("Alg3"))
+        self.layout_algorithm.addRow(self.pb4, QLabel("Alg4"))
+        self.layout_setup.addLayout(self.layout_algorithm)
 
         # Moduleplacement
-        layout_setup.addWidget(label_module_placement)
-        mb1 = QRadioButton()  # Endre variabelnavn på disse
-        mb2 = QRadioButton()  # Endre variabelnavn på disse
-        layout_module_placement.addRow(mb1, QLabel("Automatisk"))
-        layout_module_placement.addRow(mb2, QLabel("Manuelt"))
-        layout_setup.addLayout(layout_module_placement)
+        self.layout_setup.addWidget(self.label_module_placement)
+        self.mb1 = QRadioButton()  # Change variablename later
+        self.mb2 = QRadioButton()  # Change variablename later
+        self.layout_module_placement.addRow(self.mb1, QLabel("Automatisk"))
+        self.layout_module_placement.addRow(self.mb2, QLabel("Manuelt"))
+        self.layout_setup.addLayout(self.layout_module_placement)
 
         # Exit-buttons
         self.button_cancel = QPushButton("Avbryt")
         self.button_save = QPushButton("Lagre")
-        layout_buttons.addWidget(self.button_cancel)
-        layout_buttons.addWidget(self.button_save)
-        layout_setup.addLayout(layout_buttons)
+        self.layout_buttons.addWidget(self.button_cancel)
+        self.layout_buttons.addWidget(self.button_save)
+        self.layout_setup.addLayout(self.layout_buttons)
 
-        self.setLayout(layout_setup)
+        self.setLayout(self.layout_setup)
 
         self.button_cancel.clicked.connect(self.reject)  # esc-key (default)
         self.button_save.clicked.connect(self.accept)  # enter-key (default)