diff --git a/ex5/ex5.c b/ex5/ex5.c
index b06d07c010aa9950509555aa73f8e9c715dd1f60..3bc9967469872ce74953619f25eeff967bfb2bef 100644
--- a/ex5/ex5.c
+++ b/ex5/ex5.c
@@ -201,6 +201,12 @@ Matrix *quadtree_to_matrix(Node *root) {
 
 // ---
 
+/**
+ * @brief Looks for the greatest value in all the quadtree.
+ * 
+ * @param root 
+ * @return int 
+ */
 int quadtree_max(Node *root) {
     if (quadtree_is_leaf(root)) {
         return root->data;
@@ -214,6 +220,13 @@ int quadtree_max(Node *root) {
     return max_value;
 }
 
+/**
+ * @brief Follows the indicated path, deletes the subtree and initializes the node data to the max of the subtree.
+ * 
+ * @param root 
+ * @param indices 
+ * @param indices_length 
+ */
 void transform(Node *root, int *indices, int indices_length) {
     for (int i = 0; i < indices_length; i += 1) {
         root = root->children[indices[i]];