diff --git a/matlab/ReshapeMatFiles.m b/matlab/ReshapeMatFiles.m
index 05b576723e5a6c6e4b9132bddb9269c5ca67ecb0..bfa5834307199724b71de9841cf257658c8d40a8 100644
--- a/matlab/ReshapeMatFiles.m
+++ b/matlab/ReshapeMatFiles.m
@@ -1,11 +1,35 @@
 function ReshapeMatFiles(type, type2)
-  % Reshape and sort (along the mcmc simulations) the mat files generated
-  % by DYNARE.
-  %
-  % 4D-arrays are splitted along the first dimension.
-  % 3D-arrays are splitted along the second dimension.
-  %
-  %   
+
+% function ReshapeMatFiles(type, type2)
+% Reshapes and sorts (along the mcmc simulations) the mat files generated by DYNARE.
+% 4D-arrays are splitted along the first dimension.
+% 3D-arrays are splitted along the second dimension.
+%
+% INPUTS:
+%   type:            statistics type in the repertory:
+%                      dgse
+%                      irf_bvardsge
+%                      smooth
+%                      filter
+%                      error
+%                      innov
+%                      forcst
+%                      forcst1
+%   type2:           analysis type:
+%                      posterior
+%                      gsa
+%                      prior
+%    
+% OUTPUTS:
+%    none              
+%
+% SPECIAL REQUIREMENTS
+%    none
+%  
+% part of DYNARE, copyright Dynare Team (2003-2007)
+% Gnu Public License.
+
+  
   global M_ options_
 
 if nargin==1,