diff --git a/src/commandExecutor.js b/src/commandExecutor.js
index 69e5af220c7a08b03ade4d1e1b13fa9643351d93..abcff63851eebef07959d34b139e46d2a754bd82 100644
--- a/src/commandExecutor.js
+++ b/src/commandExecutor.js
@@ -269,11 +269,11 @@ async function ExecuteOpenSessionToMember(data, targetMemberID, userMediaID)
 
 /**
  *
- * @param data
- * @param userDatabase
- * @param userMediaID
- * @returns {Promise<JSON|*>}
- * @constructor
+ * Prepares the template options for Opensession command in the scope of a group. If there is more than one option, calls executeCommandOnGroup with ExecuteOpenSessionToMember
+ * @param data - The current data to send.
+ * @param userDatabase - The user's database data.
+ * @param userMediaID - The user's OSNS media ID.
+ * @returns {Promise<JSON>} - The modified data to send to the user.
  */
 async function VerifyAndExecuteOpenSessionToMember(data, userDatabase, userMediaID)
 {
@@ -312,6 +312,15 @@ async function VerifyAndExecuteOpenSessionToMember(data, userDatabase, userMedia
     }, data, targetGroup, userDatabase._id, userMediaID);
 }
 
+/**
+ *
+ * Prepares the template options for Opensession command in the scope of a group. If there is more than one option, calls executeCommandOnGroup with ExecuteOpenSessionToMember
+ * @param data
+ * @param userDatabase
+ * @param userMediaID
+ * @returns {Promise<JSON|*>}
+ * @constructor
+ */
 async function VerifyAndExecuteOpenSessionToGroup(data, userDatabase, userMediaID)
 {
     const groups = await databaseManager.findGroupsByUserID(userMediaID);
diff --git a/src/mongoose.js b/src/mongoose.js
index 55c82cff95711e5fd9cde95554debb1e8890ebf3..f6ab944337a214ab3ceba2b192348910ac4cee16 100755
--- a/src/mongoose.js
+++ b/src/mongoose.js
@@ -221,7 +221,7 @@ const modifyConnectedUserToGroupByGroupID = (groupID, userID, connectTo) => grou
  * Finds all the connected users in the searched group.
  *
  * @param {string} groupID - The group ID to search the connected users in.
- * @returns {Promise<[]>} The connected users of the group
+ * @returns {Promise<Array<string>>} The connected users of the group
  */
 const findConnectedMembersByGroupID = (groupID) => group.findOne({"_id":groupID}).exec().then(foundGroup => {
     let connectedUsers = [];