diff --git a/.idea/misc.xml b/.idea/misc.xml
index ba18a6c33941ef11eae66cf92f7dc410afae5c27..14613fe5e03b18ddd991ae2d6469785815981a8c 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -8,5 +8,5 @@
       </list>
     </option>
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_X" default="true" project-jdk-name="openjdk-20" project-jdk-type="JavaSDK" />
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_19" project-jdk-name="openjdk-20" project-jdk-type="JavaSDK" />
 </project>
\ No newline at end of file
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/config/CorsConfig.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/config/CorsConfig.java
index 8c238f9a2cf906d2cecd9626de76b690a14c3590..1a228e45e1da8670f4515e2dd0606a24086f7ae4 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/config/CorsConfig.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/config/CorsConfig.java
@@ -12,9 +12,8 @@ import java.util.Arrays;
 
 /**
  * Cors configuration for application
- * @author Birk
- * @version 1.0
- * @since 04.04.2023
+ * @author Birk, Anders
+ * @version 1.1
  */
 @Configuration
 @AllArgsConstructor
@@ -35,7 +34,6 @@ public class CorsConfig {
             public void addCorsMappings(CorsRegistry registry) {
                 registry.addMapping("/**")
                         .allowedOrigins(Arrays.asList("https://localhost",
-                                "https://10.24.38.136",
                                 domainProperty.domain()
                         ).toArray(String[]::new))
                         .allowedMethods(Arrays.asList(
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/config/SecurityConfig.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/config/SecurityConfig.java
index 5aa3c4bf6d6725296b93f9d92c1a017b1a83a8d6..446e5800a250bc12d9dd18f118dfa7f150a61a58 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/config/SecurityConfig.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/config/SecurityConfig.java
@@ -13,7 +13,6 @@ import org.springframework.security.web.SecurityFilterChain;
  * Configs for security and authentication
  * @author Birk
  * @version 1.0
- * @since 04.04.2023
  */
 @Configuration
 @AllArgsConstructor
@@ -23,8 +22,6 @@ public class SecurityConfig {
      * Configures the HttpSecurity for the application.
      * Dose not need ot have csrf enabled, because we are using jwt
      * and the application is stateless
-     * <p>
-     * TODO: Enable CORS policy when possible!
      *
      * @param http HttpSecurity to configure
      * @return SecurityFilterChain with configured HttpSecurity
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/config/authentiation/AuthenticationConfig.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/config/authentiation/AuthenticationConfig.java
index 6a12193c63ff9f1bdea776058772aa4d122fcf13..e7158b2ab8621fced8663150620d6ddd6e3709b6 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/config/authentiation/AuthenticationConfig.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/config/authentiation/AuthenticationConfig.java
@@ -26,7 +26,6 @@ import org.springframework.security.provisioning.InMemoryUserDetailsManager;
  * Configures the authentication for the application.
  * @author Anders and  birk
  * @version 1.1
- * @since 05.04.2023
  */
 @Configuration
 public class AuthenticationConfig {
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/config/properties/DomainProperty.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/config/properties/DomainProperty.java
index 3ec7bbdbb41cd1b04f3122d3704eb0ce970667ea..5a096094525d2f9c4c69ebbd386bc8c35a14f3ef 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/config/properties/DomainProperty.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/config/properties/DomainProperty.java
@@ -6,7 +6,6 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
  * Configuration properties for the domain of the application
  * @author Birk
  * @version 1.0
- * @since 04.04.2023
  */
 @ConfigurationProperties(prefix = "domain")
 public record DomainProperty (String domain){
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/AllergyController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/AllergyController.java
index a8cbdf8c0b1d5c47161f586ccb3a5b2e5f5b1e08..578ce1f9658a4bd90d11e1089f6b83d854769605 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/AllergyController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/AllergyController.java
@@ -13,7 +13,6 @@ import org.springframework.web.bind.annotation.*;
 /**
  * Controller for allergies
  * @author Stian Lyng
- * @version 1.0
  */
 @AllArgsConstructor
 @RestController
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/AuthenticationController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/AuthenticationController.java
index 8791924bbf026cfee268abafc81bdb52f47bcb04..f2d40cf818cb95ebf70e54e392cb16d6dc8472ec 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/AuthenticationController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/AuthenticationController.java
@@ -19,7 +19,6 @@ import org.springframework.web.bind.annotation.RestController;
  *
  * @author Anders
  * @version 1.0
- * @since 19.04.2023
  */
 
 @RestController
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/RecipeController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/RecipeController.java
index aaa3bb28549b40b75fcbe98bea8e92e713f32f4f..4d737a31efa32a475a99768944a6bca2c8fc8424 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/RecipeController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/RecipeController.java
@@ -23,9 +23,6 @@ import org.springframework.web.bind.annotation.*;
 @RequestMapping("/api/recipe")
 public class RecipeController {
 
-    /**
-     * The recipe service
-     */
     private final RecipeService recipeService;   
 
     /**
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/ShoppingListController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/ShoppingListController.java
index 8f5b6021b7748b41ee9dbc6d6c2aa737a363fb9c..5888530361ed719265366859bc75d407a8bc7fea 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/ShoppingListController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/ShoppingListController.java
@@ -45,6 +45,7 @@ public class ShoppingListController {
      * Gets a shopping list by its ID
      *
      * @param id the shopping list ID
+     * @param authentication The authentication object of the user.
      * @return the shopping list, or an error if the ID is invalid,
      * or the user dose not have the rights to edit the shopping list
      */
@@ -65,6 +66,7 @@ public class ShoppingListController {
      * Gets a shopping list by its group ID
      * 
      * @param id the request containing the group ID
+     * @param authentication The authentication object of the user.
      * @return the shopping list, or an error if the ID is invalid
      */
     @GetMapping("/group/{groupId}")
@@ -150,6 +152,7 @@ public class ShoppingListController {
      *
      * @param shoppingListId the shopping list ID
      * @param ean           the product EAN
+     * @param auth The authentication object of the user.
      * @return the shopping list with the removed product, or an error if the shopping list ID or EAN is invalid
      */
     @DeleteMapping("/removeProduct/{shoppingListId}/{ean}")
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/WeeklyMenuController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/WeeklyMenuController.java
index 74c65bb752e6c341f80bbb40b772591c5b0c34fb..66e959088c0931da21e24aafeeed4262a904b361 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/WeeklyMenuController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/WeeklyMenuController.java
@@ -14,28 +14,24 @@ import ntnu.idatt2016.v233.SmartMat.dto.response.WeeklyMenuResponse;
 import ntnu.idatt2016.v233.SmartMat.service.RecipeService;
 import ntnu.idatt2016.v233.SmartMat.service.WeeklyMenuService;
 
+/**
+ * Controller for weekly menu
+ *
+ * @author Stian Lyng
+ * @version 1.0
+ */
 @AllArgsConstructor
 @RestController
 @RequestMapping("/api/weeklymenu")
 public class WeeklyMenuController {
-    
-    /*
-    private WeeklyMenuService weeklyMenuService;
-    
-    @GetMapping("/{fridgeId}")
-    public ResponseEntity<List<WeeklyMenuResponse>> getWeeklyMenu(@PathVariable("fridgeId") Long fridgeId) {
-        List<WeeklyMenuResponse> weeklyMenu = weeklyMenuService.getWeeklyMenu(fridgeId);
-        
-        if (weeklyMenu.isEmpty()) {
-            return ResponseEntity.notFound().build();
-        } else {
-            return ResponseEntity.ok(weeklyMenu);
-        }
-    }
-    */
 
     final private RecipeService recipeService;
 
+    /**
+     * Gets weekly menu for a fridge
+     * @param fridgeId the id of the fridge
+     * @return the weekly menu for the fridge
+     */
     @GetMapping("/{fridgeId}")
     public ResponseEntity<Object> compareWeeklyMenuAndRecipeProducts(@PathVariable("fridgeId") Integer fridgeId) {
         List<RecipeWithMatchCount> weeklyMenuDetails = recipeService.getWeeklyMenu(fridgeId);
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/FridgeController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/FridgeController.java
index 2869134cce960b8fec71b015b5a38303cdbe2b75..20bde998469e42d9ffaa1e8133d1f32c9ff7d17b 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/FridgeController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/FridgeController.java
@@ -58,7 +58,8 @@ public class FridgeController {
 
     /**
      * Gets the fridge by its fridge id
-     * @param fridgeId the id of the fridge
+     * @param fridgeId the id of the fridge to get
+     * @param authentication a user authentication object for validation of user authorization
      * @return the fridge if it exists, or a 404 if it doesn't, or a 403 if the user is not in the fridge
      */
     @GetMapping("/fridge/{fridgeId}")
@@ -79,6 +80,7 @@ public class FridgeController {
      * Adds a product to the fridge of a group
      *
      * @param request the request containing the group id and product id
+     * @param authentication a user authentication object for validation of user authorization
      * @return success if the product was added, bad request if the product was already in the fridge, or not found if the group or product doesn't exist
      */
     @PostMapping("/group/product")
@@ -107,6 +109,7 @@ public class FridgeController {
     /**
      * Updates a product in a fridge
      * @param request the request containing the group id and product id
+     * @param authentication a user authentication object for validation of user authorization
      * @return success if the product was added, bad request if the product was already in the fridge,
      * or not found if the group or product doesn't exist
      */
@@ -174,6 +177,7 @@ public class FridgeController {
     /**
      * Deletes a product from the fridge
      * @param fridgeProductId the id of the fridge product association
+     * @param authentication the authentication of the user
      * @return success if the product was deleted, bad request if the product wasn't found
      * , or forbidden if the user is not in the group
      */
@@ -207,6 +211,7 @@ public class FridgeController {
      * Deletes a product from the fridge and creates a waste object from it.
      *
      * @param fridgeProductId The id of the fridge product association to be deleted
+     * @param authentication The authentication of the user
      * @return A ResponseEntity with status code 200 if successful,
      * or status code 404 if the specified fridge product association was not found.
      * or status code 403 if the user is not in the group
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/GroupController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/GroupController.java
index 7ed47a10025a1540748fd5ce957fbeef04d615be..48c6829c7aa046d113a6e836ba774fa721ad6789 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/GroupController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/GroupController.java
@@ -37,6 +37,7 @@ public class GroupController {
     /**
      * Gets a group by its id
      * @param groupId the id of the group
+     * @param auth the authentication of the user
      * @return a ResponseEntity containing the group if it exists, or a 404 if it doesn't
      */
     @GetMapping("/{groupId}")
@@ -72,6 +73,7 @@ public class GroupController {
      * Creates a new group
      *
      * @param groupRequest the group to create
+     * @param auth the authentication of the user
      * @return a ResponseEntity containing the created group if it was created successfully,
      * or a 400 if the group name is invalid or already exists, or if the username is invalid
      */
@@ -130,6 +132,7 @@ public class GroupController {
      * Gets the level of a group
      *
      * @param groupId the id of the group
+     * @param auth the authentication of the user
      * @return a ResponseEntity containing the level of the group if it exists, or a 404 if it doesn't
      */
     @GetMapping("/{groupId}/level")
@@ -174,6 +177,7 @@ public class GroupController {
      * Updates the open/closed status of the group with the specified ID.
      *
      * @param groupId the ID of the group to update
+     * @param auth the authentication of the user
      * @return a ResponseEntity with a Boolean value indicating whether the operation was successful
      */
     @PutMapping("/{groupId}/changeOpen")
@@ -196,6 +200,7 @@ public class GroupController {
      * Handles the HTTP PUT request to change the primary group of a user.
      *
      * @param newPrimaryGroupId the ID of the new primary group
+     * @param auth the authentication of the user
      * @return a ResponseEntity object containing an HTTP status code and the updated UserGroupAsso object,
      *         or a ResponseEntity object with an HTTP status code indicating that the request was not successful
      */
@@ -244,6 +249,7 @@ public class GroupController {
      * Handles the HTTP POST request to add a new connection between a user and a group.
      *
      * @param groupConnectionRequest the request object containing the username and link code of the user and group to be connected
+     * @param auth the authentication of the user
      * @return a ResponseEntity object containing an HTTP status code and the newly created UserGroupAsso object,
      *         or a ResponseEntity object with an HTTP status code indicating that the request was not successful
      */
@@ -294,6 +300,7 @@ public class GroupController {
      * Changes the authority level of a user in a group.
      *
      * @param authorityRequest the request object containing the username and group ID of the user to change the authority of
+     * @param auth the authentication of the user
      * @return a ResponseEntity object containing the updated UserGroupAsso object and an HTTP status code of 200,
      *        or a ResponseEntity object with an HTTP status code of 403 if the user is not authorized to change the authority,
      *         or a ResponseEntity object with an HTTP status code of 404 if the group or user does not exist
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/WasteController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/WasteController.java
index 0c804cf2c54fec9c99ebb66a036f7625ade2801b..444287ff655c7dde446d25ab059dc906d92c92c4 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/WasteController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/group/WasteController.java
@@ -144,6 +144,7 @@ public class WasteController {
      * The amount is calculated based on the total cost of the expired products.
      *
      * @param groupId the ID of the group to retrieve the lost money from
+     * @param authentication The authentication of the user.
      * @return a ResponseEntity with the lost money as a Double if found, or a ResponseEntity with status 404 if the group is not found
      */
     @GetMapping("/statistic/lostMoney/{groupId}")
@@ -159,6 +160,7 @@ public class WasteController {
      * Retrieves the amount of CO2 emitted annually per person in a specific group.
      *
      * @param groupId the ID of the group to retrieve the statistic for
+     * @param authentication The authentication of the user.
      * @return a ResponseEntity containing the amount of CO2 emitted annually per person in the group,
      *         or a ResponseEntity with HTTP status 404 (not found) if the group or data is not found
      */
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/product/ProductController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/product/ProductController.java
index abda8869cf2dbbd2246bebf9c0d61ed969455237..742a2ca7741ab24ac1a770bfcafbc4fd229cab77 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/product/ProductController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/product/ProductController.java
@@ -23,7 +23,6 @@ import java.util.Optional;
  * It uses the product service to handle the requests.
  * @version 1.0
  * @Author Birk
- * @since 26.04.2023
  */
 @RestController
 @AllArgsConstructor
@@ -130,7 +129,7 @@ public class ProductController {
 
     /**
      * Returns all products in the database.
-     * @return All products in the database.
+     * @return A list of all products in the database.
      */
     @GetMapping("/")
     public ResponseEntity<List<Product>> getAllProducts() {
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/user/AchievementController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/user/AchievementController.java
index 2b49fd4bf793e6eb19a986fec14f686e9ac0e03d..30de98804780198e9882f48b6ec6b777ef820e24 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/user/AchievementController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/user/AchievementController.java
@@ -18,7 +18,6 @@ import java.util.Optional;
  *
  * @author Anders
  * @version 1.0
- * @sinc 20.04.2023
  */
 
 @AllArgsConstructor
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/user/UserController.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/user/UserController.java
index c591bc54401b07bd06f35da399741dead7593f9b..df6a56d68705f5785f3a657061785bf871d8d30e 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/user/UserController.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/controller/user/UserController.java
@@ -26,7 +26,6 @@ import java.util.stream.Collectors;
  * It uses the user service to handle the requests.
  * @author Birk
  * @version 1.2
- * @since 20.04.2023
  */
 @AllArgsConstructor
 @RestController
@@ -38,16 +37,6 @@ public class UserController {
     PasswordEncoder passwordEncoder;
 
     /**
-     * Use this JSON format:
-     * {
-     *     "username":"kari123",
-     *     "password":"sjokoladekake",
-     *     "email":"kari.nordman@gmail.com",
-     *     "firstName":"kari",
-     *     "lastName":"nordmann",
-     *     "birthDate":"2001-12-12"
-     * }
-     *
      * create a new user in the database
      * uses the user service
      * @param user The user to be registered.
@@ -88,6 +77,7 @@ public class UserController {
     /**
      * Get a user from the database.
      * @param username The username of the user to be fetched.
+     * @param authentication The authentication object of the user.
      * @return The user with the given username.
      */
     @GetMapping("/get/{username}")
@@ -110,6 +100,7 @@ public class UserController {
      * Adds the specified allergy to the user with the given username.
      *
      * @param allergyRequest the request object containing the username and allergy name
+     * @param authentication The authentication object of the user.
      * @return a ResponseEntity with a boolean indicating whether the operation was successful
      */
     @PostMapping("/addAllergy")
@@ -126,6 +117,7 @@ public class UserController {
      * Deletes the specified allergy from the user with the given username.
      *
      * @param allergyRequest the request object containing the username and allergy name
+     * @param authentication The authentication object of the user.
      * @return a ResponseEntity with a boolean indicating whether the operation was successful
      */
     @DeleteMapping("/deleteAllergy")
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/enums/Authority.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/enums/Authority.java
index d2aa0f3773a2410fd2cdf880861ff52db1ddd354..aff64ff991eab2da6f4553cdb753b5e41e43768c 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/enums/Authority.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/enums/Authority.java
@@ -5,7 +5,6 @@ package ntnu.idatt2016.v233.SmartMat.dto.enums;
  *
  * @author Birk
  * @version 2.0
- * @since 19.04.2023
  *
  */
 public enum Authority{
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/FridgeProductRequest.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/FridgeProductRequest.java
index 0df58b4fe4b21788385ec234ef449307c5b7239c..48da0a316c85c3030849196301685c3352f4a45f 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/FridgeProductRequest.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/FridgeProductRequest.java
@@ -2,7 +2,12 @@ package ntnu.idatt2016.v233.SmartMat.dto.request;
 
 /**
  * FridgeProductRequest is a record class representing a request to add a product to a fridge.
+ * @param fridgeProductId the id of the fridge product
  * @param groupId the id of the group
+ * @param ean the ean of the product
+ * @param amount the amount of the product
+ * @param days the days before expiry date of the product
+ * @param price the price of the product
  */
 public record FridgeProductRequest(long fridgeProductId, long groupId, long ean, int amount, int days, double price) {
 }
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/LoginRequest.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/LoginRequest.java
index f9ca9f78a4caff50ab06be9735f153429131c26d..709e502b3161fb3163881c5828c2868ae038c84e 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/LoginRequest.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/LoginRequest.java
@@ -2,11 +2,6 @@ package ntnu.idatt2016.v233.SmartMat.dto.request;
 
 /**
  * LoginRequest is a record class representing a login request.
- *
- * @author Anders
- * @version 1.0
- * @since 18.04.2023
- *
  * @param username
  * @param password
  */
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/ProductRequest.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/ProductRequest.java
index 372634c71f36ac0a32ededea9377e7b84e3366ba..4e067b92fb65f5a12eb1945370fda2dca928a2cd 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/ProductRequest.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/ProductRequest.java
@@ -4,6 +4,15 @@ import lombok.Builder;
 
 import java.util.List;
 
+/**
+ * ProductRequest is a record class representing a request to create a product.
+ * @param ean the ean of the product
+ * @param name the name of the product
+ * @param description the description of the product
+ * @param image the image of the product
+ * @param price the price of the product
+ * @param allergies the allergies of the product
+ */
 @Builder
 public record ProductRequest(long ean, String name, String description, String image, double price, List<String> allergies) {
 }
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/RegisterUserRequest.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/RegisterUserRequest.java
index 988d732d8692292306c642337a4f6a8a50f799ec..6df60e0ff9f3f4762475bf4a5253999f1791c3f1 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/RegisterUserRequest.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/RegisterUserRequest.java
@@ -7,7 +7,9 @@ import java.sql.Date;
  * @param username the username of the user
  * @param password the password of the user
  * @param email the email of the user
- *
+ * @param firstName the first name of the user
+ * @param lastName the last name of the user
+ * @param birthDate the birth date of the user
  */
 public record RegisterUserRequest(String username, String password, String email, String firstName, String lastName,
                                   Date birthDate){
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/UpdateUserRequest.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/UpdateUserRequest.java
index 159107c397361cc9931851ef3935e3f2cc4acd13..2e7e6ccd9e9f2d9765aff9e50d7c3fd78954f747 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/UpdateUserRequest.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/UpdateUserRequest.java
@@ -5,9 +5,6 @@ import java.util.List;
 
 /**
  * This class represents a request to update a user
- * @author Birk
- * @version 1.0
- * @since 26.04.2023
  *
  * @param firstName the first name of the user
  * @param lastName the last name of the user
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/WasteRequest.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/WasteRequest.java
index dbf75a2666516cdd367d02c58f30ae4f714611f7..929fc9a5a51f83fc0812cc82ba6fdf3bef1408ce 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/WasteRequest.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/WasteRequest.java
@@ -1,5 +1,12 @@
 package ntnu.idatt2016.v233.SmartMat.dto.request;
 
+/**
+ * WasteRequest is a record class representing a request to add a product to a fridge.
+ * @param groupId the id of the group
+ * @param ean the ean of the product
+ * @param amount the amount of the product
+ * @param unit the unit of the product
+ */
 public record WasteRequest(long groupId, long ean, double amount, String unit) {
 
 }
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/group/ChangeAuthorityRequest.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/group/ChangeAuthorityRequest.java
index ae7282ae1bb3e9f436dbca53a6e817aa14176d3b..2a4457e9b77439d29213d15db1e37c1dc04adbb7 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/group/ChangeAuthorityRequest.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/request/group/ChangeAuthorityRequest.java
@@ -1,4 +1,10 @@
 package ntnu.idatt2016.v233.SmartMat.dto.request.group;
 
+/**
+ * ChangeAuthorityRequest is a record class representing a request to change the authority of a user in a group.
+ * @param username the username of the user
+ * @param groupId the id of the group
+ * @param authority the new authority of the user
+ */
 public record ChangeAuthorityRequest(String username, long groupId, String authority) {}
 
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/AllergyResponse.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/AllergyResponse.java
index 66b2f728ae93a85bdf01a528305a2ce209adec33..fcf34981233259778721089e4377f3171c3529b6 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/AllergyResponse.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/AllergyResponse.java
@@ -6,7 +6,7 @@ import lombok.Data;
 import lombok.NoArgsConstructor;
 
 /**
- * This class represents a response for a weekly menu.
+ * This class represents an allergy response
  */
 @Data
 @Builder
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/RecipeDetails.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/RecipeDetails.java
index 2fd6f3f2a1d670bbdfc427226b9d7d3fa9ad6345..f02cb54c3d000e676ab235d17f89337c166e8cbb 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/RecipeDetails.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/RecipeDetails.java
@@ -6,7 +6,7 @@ import lombok.Data;
 import lombok.NoArgsConstructor;
 
 /**
- * This class represents a response for a weekly menu.
+ * This class represents recipe details response
  */
 @Data
 @Builder
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/RecipeWithMatchCount.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/RecipeWithMatchCount.java
index 0dbdf6859200cac70b6fd1c73640a3e123d44d1d..72ad5a44533b9661d9e0bfc795cdea7740d88186 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/RecipeWithMatchCount.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/RecipeWithMatchCount.java
@@ -6,7 +6,7 @@ import lombok.Data;
 import lombok.NoArgsConstructor;
 
 /**
- * This class represents a response for a weekly menu.
+ * This class represents recipe response with match count
  */
 @Data
 @Builder
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/group/GroupDetailsResponse.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/group/GroupDetailsResponse.java
index 38016d4483fdc93b461f2d30e4d6833b1f23f52d..e2e1c7dd1e46d6b7bf055b2d1cb9caf50b293bf2 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/group/GroupDetailsResponse.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/group/GroupDetailsResponse.java
@@ -5,6 +5,9 @@ import ntnu.idatt2016.v233.SmartMat.entity.group.Group;
 
 import java.util.List;
 
+/**
+ * GroupDetailsResponse is a class representing a response containing details about a group.
+ */
 @Data
 public class GroupDetailsResponse {
     private long groupId;
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/group/UserAuthorityInfo.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/group/UserAuthorityInfo.java
index 260607e221010a347b09abd68d3ddd2033831832..96f404c17400dcb8c61d9b1dce52b4cb8f54e663 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/group/UserAuthorityInfo.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/dto/response/group/UserAuthorityInfo.java
@@ -1,3 +1,8 @@
 package ntnu.idatt2016.v233.SmartMat.dto.response.group;
 
+/**
+ * UserAuthorityInfo is a record class representing a response to a group request.
+ * @param username the username of the user
+ * @param authority the authority of the user
+ */
 public record UserAuthorityInfo(String username, String authority) {}
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/Recipe.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/Recipe.java
index b4ce8bf285511ec93e0bb6fdd45affb96aad094f..ab7b573795477e2000362eb2c2725ea793e107f5 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/Recipe.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/Recipe.java
@@ -17,10 +17,8 @@ import ntnu.idatt2016.v233.SmartMat.entity.user.User;
 /**
  * Recipe is an entity class representing a recipe in the system.
  *
- * @author Anders & Stian + Birk
- * @version 1.1
- * @since 25.04.2023
- *
+ * @author Anders, Stian, Birk
+ * @version 1.7
  */
 
 @NoArgsConstructor
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/ShoppingList.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/ShoppingList.java
index 339e86cfac410c68a4c974766eca63950944c5ef..1a8166737aec9ea5980fca8a7d4116f1d613004f 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/ShoppingList.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/ShoppingList.java
@@ -14,10 +14,8 @@ import java.util.List;
 /**
  * This class represents a shopping list
  * 
- * @author Stian Lyng and Anders
- * @version 1.0.001
- * @since 19.04.2023
- *
+ * @author Stian Lyng, Anders, Birk
+ * @version 1.3
  */
 
 @NoArgsConstructor
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/Waste.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/Waste.java
index 567f074c7863a26219a5ac9227019bdc9ad94203..716a3db2566b1fff782cf055e05e5a5ac76165bb 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/Waste.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/Waste.java
@@ -15,10 +15,8 @@ import java.sql.Timestamp;
 /**
  * This class represents a waste made by a group.
  *
- * @author Stian Lyng and Anders
- * @version 1.0.001
- * @since 19.04.2023
- *
+ * @author Anders, Birk, Pedro
+ * @version 1.3
  */
 
 @NoArgsConstructor
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/fridgeProduct/FridgeProductAsso.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/fridgeProduct/FridgeProductAsso.java
index eb660c4948666ee397d16796bc5ee2e57a528640..368ce1c69b4660ea99b1bc0cf2e18fda625b4bf1 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/fridgeProduct/FridgeProductAsso.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/fridgeProduct/FridgeProductAsso.java
@@ -11,6 +11,12 @@ import ntnu.idatt2016.v233.SmartMat.entity.product.Product;
 
 import java.sql.Date;
 
+/**
+ * FridgeProductAsso is an entity class representing a fridge product association.
+ *
+ * @author Birk, Pedro
+ * @version 1.1
+ */
 @AllArgsConstructor
 @NoArgsConstructor
 @Data
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Achievement.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Achievement.java
index 1e692d3a28d0b1fe9126e6b8ed746b98211b1e35..28fe3d04dd1d1f05db821eec55d895ee1b5c8d65 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Achievement.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Achievement.java
@@ -14,9 +14,8 @@ import java.util.List;
 /**
  * Achievement is an entity class representing an achievement in the system.
  *
- * @author Anders
- * @version 1.0
- * @since 19.04.2023
+ * @author Anders, Birk
+ * @version 1.1
  *
  */
 
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Fridge.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Fridge.java
index 537c640223ddc5cfe829c703a37ea2965f20e941..0e07d4b6065e8102054a777df5941b849586462a 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Fridge.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Fridge.java
@@ -20,7 +20,6 @@ import org.hibernate.annotations.OnDeleteAction;
  *
  * @author Anders & Birk
  * @version 1.2
- * @since 25.04.2023
  */
 
 @NoArgsConstructor
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Group.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Group.java
index 9a87de61a0cdf093cc3043aa2b1103b7d4828f8d..ad150509697077816d53dc47a97c9aa52b08a94a 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Group.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/Group.java
@@ -16,11 +16,10 @@ import java.util.ArrayList;
 import java.util.List;
 
 /**
- * Group is an entity class representing a group in the system.
+ * Group is an entity class representing a user group in the system.
  *
- * @author Stian Lyng, Anders Austlid
- * @version 1.0.1
- * @since 20.04.2023
+ * @author Stian Lyng, Anders Austlid, Birk, Pedro
+ * @version 1.3
  */
 
 @NoArgsConstructor
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/UserGroupAsso.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/UserGroupAsso.java
index cf3b0fca6be1baeaa5cb6570cd0210d947799a1d..e60d36b4f8aa838a215ebbe05beed606dbefafc8 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/UserGroupAsso.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/UserGroupAsso.java
@@ -9,9 +9,8 @@ import ntnu.idatt2016.v233.SmartMat.entity.user.User;
 /**
  * UserGroupTable is a class representing the user_group table in the database.
  * It is used to represent the many-to-many relationship between users and groups.
- * @Author Birk
- * @Version 1.0
- * @Since 25.04
+ * @Author Birk, Pedro
+ * @Version 1.2
  */
 @Entity
 @AllArgsConstructor
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/UserGroupId.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/UserGroupId.java
index a9698b22e631d954bc2b8512bf871216fb7a06f3..9eec6d34b16eeab89e32dbe79750f7243c141156 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/UserGroupId.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/group/UserGroupId.java
@@ -10,6 +10,12 @@ import lombok.NoArgsConstructor;
 import java.io.Serializable;
 import java.util.Objects;
 
+/**
+ * This class represents a user group id
+ *
+ * @author Birk
+ * @version 1.0
+ */
 @AllArgsConstructor
 @NoArgsConstructor
 @Data
@@ -21,7 +27,6 @@ public class UserGroupId implements Serializable {
     @Column(name = "group_id")
     private long groupId;
 
-
     @Override
     public boolean equals(Object o) {
         if (this == o) return true;
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Allergy.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Allergy.java
index b3b87d9a84a1006c6c974436cc3d86e944c7335f..79ffc537458180188a0e8a4a7258d99fa72f71e4 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Allergy.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Allergy.java
@@ -17,8 +17,6 @@ import java.util.List;
  * 
  * @author Stian Lyng and Anders
  * @version 1.3
- * @since 24.04.2023
- *
  */
 
 @NoArgsConstructor
@@ -62,6 +60,10 @@ public class Allergy{
 
     }
 
+    /**
+     * adds a product to the allergy
+     * @param product adds a product to the list of products with this allergy
+     */
     public void addProduct(Product product) {
         if (products == null)
             products = new ArrayList<>();
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Category.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Category.java
index d460d91555e64c54c0cc100f747e19838da96fc2..aef8bfaf120c1004c6bb6c0a14f2d1e624891a1e 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Category.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Category.java
@@ -10,6 +10,12 @@ import lombok.NoArgsConstructor;
 
 import java.util.List;
 
+/**
+ * Category is an entity class representing a product category
+ *
+ * @author Pedro, Birk
+ * @version 1.1
+ */
 @NoArgsConstructor
 @AllArgsConstructor
 @Builder
@@ -26,6 +32,10 @@ public class Category {
     @JsonIgnore
     private List<Product> products;
 
+    /**
+     * adds a product to the category
+     * @param product adds a product to the list of products in this category
+     */
     public void addProduct(Product product) {
         if (products == null)
             products = List.of(product);
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Product.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Product.java
index 45efc15f82d56754a013e126571ed087eb37658e..febadac7f378791155c7cc320db0d8642fa6010e 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Product.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/product/Product.java
@@ -22,9 +22,8 @@ import java.util.List;
  * Product is an entity class representing a product in the system.
  * All other info about the product is fetched from api call on fronted.
  * this ensures that the product is always up to date.
- * @author Birk and Anders
- * @version 1.1.001
- * @since 19.04.2023
+ * @author Birk, Anders, Pedro
+ * @version 1.4
  */
 @Data
 @NoArgsConstructor
@@ -116,6 +115,10 @@ public class Product{
         shoppingLists.add(shoppingList);
     }
 
+    /**
+     * Adds an allergy to the product
+     * @param allergy the allergy to add to the product
+     */
     public void addAllergy(Allergy allergy){
         if (allergies == null){
             allergies = new ArrayList<>();
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/user/User.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/user/User.java
index 4129c44420e16c0b7fbfe83612d2e1b110cbc671..ff2635a7b446773b566b912ab37efc4bb2db8345 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/user/User.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/entity/user/User.java
@@ -20,10 +20,8 @@ import java.util.*;
  * User is a class representing a user in the system.
  * It implements the UserDetails interface.
  *
- * @author Anders and Birk
+ * @author Anders, Birk, Pedro
  * @version 2.0.3
- * @since 25.04.2023
- *
  */
 
 @Data
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/repository/group/FridgeRepository.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/repository/group/FridgeRepository.java
index 8d8ed7ded3e4713b23773c21af78a19115274074..fe270076e359b5650631e126a3f60a8f4769de1f 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/repository/group/FridgeRepository.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/repository/group/FridgeRepository.java
@@ -5,6 +5,12 @@ import org.springframework.data.jpa.repository.JpaRepository;
 
 import java.util.Optional;
 
+/**
+ * Repository interface for the Fridge entity
+ *
+ * @author Anders, Birk
+ * @version 1.1
+ */
 public interface FridgeRepository extends JpaRepository<Fridge, Long> {
     /**
      * Gets the fridge of a group
diff --git a/src/main/java/ntnu/idatt2016/v233/SmartMat/repository/group/GroupRepository.java b/src/main/java/ntnu/idatt2016/v233/SmartMat/repository/group/GroupRepository.java
index e1f3278481f0b498efb7b1b4ba4beb203f3a39ec..42fb031fcc95c27fba7ac916af3e2ebcf566e07f 100644
--- a/src/main/java/ntnu/idatt2016/v233/SmartMat/repository/group/GroupRepository.java
+++ b/src/main/java/ntnu/idatt2016/v233/SmartMat/repository/group/GroupRepository.java
@@ -14,9 +14,8 @@ import java.util.Optional;
 /**
  * Repository for groups
  * 
- * @author Stian Lyng, Anders Austlid
+ * @author Stian Lyng, Anders Austlid, Pedro Cardona
  * @version 1.3
- * @since 24.04.2023
  */
 public interface GroupRepository extends JpaRepository<Group, Long> {
     /**
@@ -42,11 +41,25 @@ public interface GroupRepository extends JpaRepository<Group, Long> {
      */
     Optional<Group> findByGroupId(long id);
 
+    /**
+     * Gets link codes of all groups
+     * @return a list of all link codes
+     */
     @Query(value = "SELECT link_code FROM  groups", nativeQuery = true)
     List<String> findAllLinkCode();
 
+    /**
+     * Gets a group with a given link code
+     * @param linkCode the link code of the group
+     * @return the group with the given link code if it exists
+     */
     Optional<Group> findByLinkCode(String linkCode);
 
+    /**
+     * Gets the amount of users in a group with a given group id
+     * @param groupId the id of the group
+     * @return the amount of users in the group
+     */
     @Query(value = "SELECT count(*) FROM user_group where group_id = :groupId", nativeQuery = true)
     int countAllUserInGroup(@Param("groupId") long groupId);