diff --git a/functions/miscellaneous/trimPath.m b/functions/miscellaneous/trimPath.m
index eded8f84e1059c2c00f867122cb5039305392d73..192009c56937b775992d604a9bf0efc661d5f8fb 100644
--- a/functions/miscellaneous/trimPath.m
+++ b/functions/miscellaneous/trimPath.m
@@ -1,4 +1,13 @@
 function out = trimPath(path)
+% trimPath - This function recursively contracts paths that use ".."
+%   e.g: C:\User\..\randomFolder -> C:\randomFolder
+% 
+% INPUTS:
+%         - path, string, path to be trimmed
+% 
+% OUTPUTS:
+%         - trimmed path, string
+
 trimmed = false;
 out = fullfile(path); % Trims multiple separators characters
 exp = ['\', filesep, '[^\', filesep,']+\', filesep,'\.\.'];