From db50368418f74bab39aea626241dacb74e402360 Mon Sep 17 00:00:00 2001
From: sebastien <sebastien@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Fri, 1 Aug 2008 12:40:33 +0000
Subject: [PATCH] v4 matlab: fixed some existing copyright headers (and some
 other minor header issues)

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1974 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 matlab/AIM/dynAIMsolver1.m                    | 20 ++++++++++++--
 matlab/DiffuseKalmanSmoother3.m               | 22 +++++++++++----
 matlab/DiffuseKalmanSmoother3_Z.m             | 20 +++++++++++---
 matlab/DiffuseKalmanSmootherH1.m              | 22 +++++++++++----
 matlab/DiffuseKalmanSmootherH3.m              | 23 +++++++++++-----
 matlab/DiffuseKalmanSmootherH3corr.m          | 20 +++++++++++---
 matlab/DsgeLikelihood.m                       | 21 ++++++++++++---
 matlab/DsgeSmoother.m                         | 20 +++++++++++---
 matlab/GetPosteriorParametersStatistics.m     | 20 +++++++++++---
 matlab/McMCDiagnostics.m                      | 20 +++++++++++---
 matlab/bksup1.m                               | 20 +++++++++++---
 matlab/bksupk.m                               | 20 +++++++++++---
 matlab/bvar_density.m                         | 22 ++++++++++++---
 matlab/bvar_forecast.m                        | 21 ++++++++++++---
 matlab/bvar_toolbox.m                         | 22 ++++++++++++---
 matlab/check_posterior_analysis_data.m        | 19 +++++++++++--
 matlab/compute_mh_covariance_matrix.m         | 20 +++++++++++---
 matlab/dr1.m                                  | 20 +++++++++++---
 matlab/draw_prior_density.m                   | 20 +++++++++++---
 matlab/dsample.m                              | 20 +++++++++++---
 .../dsge_posterior_theoretical_correlation.m  | 22 ++++++++++++---
 .../dsge_posterior_theoretical_covariance.m   | 21 ++++++++++++---
 matlab/dsgevar_posterior_density.m            | 21 ++++++++++++---
 matlab/dyn2vec.m                              | 24 ++++++++++++-----
 matlab/dynare.m                               | 20 +++++++++++---
 matlab/dynare_config.m                        | 23 +++++++++++++---
 matlab/dynare_solve.m                         | 20 +++++++++++---
 matlab/dynasave.m                             | 19 ++++++++++---
 matlab/dynatype.m                             | 20 +++++++++++---
 matlab/ff1_.m                                 | 20 +++++++++++---
 matlab/ffill.m                                | 22 +++++++++++----
 matlab/forcst.m                               | 20 +++++++++++---
 matlab/gensylv/gensylv.m                      | 27 ++++++++++++++-----
 matlab/get_date_of_a_file.m                   | 23 +++++++++++++---
 .../get_innovation_contemporaneous_impact.m   | 20 +++++++++++---
 matlab/get_name_of_the_last_mh_file.m         | 21 +++++++++++++--
 matlab/get_the_name.m                         | 20 +++++++++++---
 matlab/global_initialization.m                | 22 ++++++++++++---
 matlab/homotopy2.m                            | 20 +++++++++++---
 matlab/indnv.m                                | 20 +++++++++++---
 matlab/initial_estimation_checks.m            | 19 ++++++++++---
 matlab/initvalf.m                             | 20 +++++++++++---
 matlab/inverse_gamma_specification.m          | 20 +++++++++++---
 matlab/irf.m                                  | 20 +++++++++++---
 matlab/ispd.m                                 | 20 +++++++++++---
 matlab/kalman_transition_matrix.m             | 20 +++++++++++---
 matlab/kernel_density_estimate.m              | 19 +++++++++++--
 matlab/kronecker/A_times_B_kronecker_C.m      | 22 ++++++++++++---
 .../sparse_hessian_times_B_kronecker_C.m      | 25 +++++++++++++----
 matlab/lnsrch1.m                              | 24 ++++++++++++-----
 matlab/lpdfgam.m                              | 20 +++++++++++---
 matlab/lpdfgbeta.m                            | 20 +++++++++++---
 matlab/lpdfig1.m                              | 24 ++++++++++++-----
 matlab/lpdfig2.m                              | 24 ++++++++++++-----
 matlab/lpdfnorm.m                             | 22 +++++++++++----
 matlab/make_ex_.m                             | 20 +++++++++++---
 matlab/make_y_.m                              | 21 ++++++++++++---
 matlab/marginal_density.m                     | 20 +++++++++++---
 matlab/matlab_ver_less_than.m                 | 20 +++++++++++---
 matlab/metropolis_hastings_initialization.m   | 21 ++++++++++++---
 matlab/mh_optimal_bandwidth.m                 | 21 ++++++++++++---
 matlab/mode_check.m                           | 20 +++++++++++---
 matlab/my_subplot.m                           | 20 +++++++++++---
 matlab/numgrad3.m                             | 18 +++++++++++--
 matlab/numgrad5.m                             | 19 +++++++++++--
 matlab/octave_ver_less_than.m                 | 20 +++++++++++---
 matlab/plot_priors.m                          | 20 +++++++++++---
 matlab/posterior_analysis.m                   | 19 +++++++++++--
 matlab/posterior_moments.m                    | 19 +++++++++++--
 matlab/prior_bounds.m                         | 20 +++++++++++---
 matlab/prior_draw.m                           | 20 +++++++++++---
 matlab/priordens.m                            | 20 +++++++++++---
 matlab/qz/mjdgges.m                           | 22 ++++++++++++---
 matlab/rand_inverse_wishart.m                 | 19 +++++++++++--
 matlab/rand_matrix_normal.m                   | 20 +++++++++++---
 matlab/rand_multivariate_normal.m             | 23 +++++++++++++---
 matlab/rand_multivariate_student.m            | 22 ++++++++++++---
 matlab/random_walk_metropolis_hastings.m      | 22 ++++++++++++---
 matlab/resid.m                                | 21 +++++++++++----
 matlab/resol.m                                | 20 +++++++++++---
 matlab/rndprior.m                             | 21 +++++++++++----
 matlab/rplot.m                                | 21 +++++++++++----
 matlab/selec_posterior_draws.m                | 19 +++++++++++--
 matlab/set_default_option.m                   | 20 +++++++++++---
 matlab/set_prior.m                            | 20 +++++++++++---
 matlab/set_shocks.m                           | 20 +++++++++++---
 matlab/set_state_space.m                      | 20 +++++++++++---
 matlab/sim1.m                                 | 20 +++++++++++---
 matlab/simk.m                                 | 21 ++++++++++++---
 matlab/simul.m                                | 21 ++++++++++++---
 matlab/simult.m                               | 21 ++++++++++++---
 matlab/simult_.m                              | 20 +++++++++++---
 matlab/solve1.m                               | 20 +++++++++++---
 matlab/steady.m                               | 20 +++++++++++---
 matlab/steady_.m                              | 20 +++++++++++---
 matlab/warning_config.m                       | 20 +++++++++++---
 96 files changed, 1650 insertions(+), 337 deletions(-)

diff --git a/matlab/AIM/dynAIMsolver1.m b/matlab/AIM/dynAIMsolver1.m
index acc1e12e31..e6970dadaa 100644
--- a/matlab/AIM/dynAIMsolver1.m
+++ b/matlab/AIM/dynAIMsolver1.m
@@ -43,8 +43,24 @@ function [dr,aimcode,rts]=dynAIMsolver1(jacobia_,M_,dr)
 %       i.e. diff < e-14 for aa and diff < *e-13 for jacobia_ if Q' is used.  
 %
 % GP July 2008 
-% part of DYNARE, copyright Dynare Team (1996-2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 aimcode=-1;
 neq= size(jacobia_,1); % no of equations
 lags=M_.maximum_endo_lag; % no of lags and leads
diff --git a/matlab/DiffuseKalmanSmoother3.m b/matlab/DiffuseKalmanSmoother3.m
index b41768e3bb..91c6e6a95b 100644
--- a/matlab/DiffuseKalmanSmoother3.m
+++ b/matlab/DiffuseKalmanSmoother3.m
@@ -1,5 +1,4 @@
 function [alphahat,etahat,a1, aK] = DiffuseKalmanSmoother3(T,R,Q,Pinf1,Pstar1,Y,trend,pp,mm,smpl,mf)
-
 % function [alphahat,etahat,a1, aK] = DiffuseKalmanSmoother3(T,R,Q,Pinf1,Pstar1,Y,trend,pp,mm,smpl,mf)
 % Computes the diffuse kalman smoother without measurement error, in the case of a singular var-cov matrix.
 % Univariate treatment of multivariate time series.
@@ -22,15 +21,28 @@ function [alphahat,etahat,a1, aK] = DiffuseKalmanSmoother3(T,R,Q,Pinf1,Pstar1,Y,
 %    etahat:   smoothed shocks
 %    a1:        matrix of one step ahead filtered state variables
 %    aK:       3D array of k step ahead filtered state variables
-
+%
 % SPECIAL REQUIREMENTS
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % Modified by M. Ratto
 % New output argument aK: 1-step to nk-stpe ahed predictions)
diff --git a/matlab/DiffuseKalmanSmoother3_Z.m b/matlab/DiffuseKalmanSmoother3_Z.m
index 42f2246728..01e8abf8b4 100644
--- a/matlab/DiffuseKalmanSmoother3_Z.m
+++ b/matlab/DiffuseKalmanSmoother3_Z.m
@@ -1,5 +1,4 @@
 function [alphahat,etahat,a1,P,aK,PK,d,decomp] = DiffuseKalmanSmoother3_Z(T,Z,R,Q,Pinf1,Pstar1,Y,pp,mm,smpl)
-
 % function [alphahat,etahat,a1,P,aK,PK,d,decomp_filt] = DiffuseKalmanSmoother3(T,Z,R,Q,Pinf1,Pstar1,Y,pp,mm,smpl)
 % Computes the diffuse kalman smoother without measurement error, in the case of a singular var-cov matrix.
 % Univariate treatment of multivariate time series.
@@ -34,10 +33,23 @@ function [alphahat,etahat,a1,P,aK,PK,d,decomp] = DiffuseKalmanSmoother3_Z(T,Z,R,
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % Modified by M. Ratto
 % New output argument aK: 1-step to nk-stpe ahed predictions)
diff --git a/matlab/DiffuseKalmanSmootherH1.m b/matlab/DiffuseKalmanSmootherH1.m
index aed1a82c73..2150c22d9f 100644
--- a/matlab/DiffuseKalmanSmootherH1.m
+++ b/matlab/DiffuseKalmanSmootherH1.m
@@ -1,5 +1,4 @@
 function [alphahat,epsilonhat,etahat,a, aK] = DiffuseKalmanSmootherH1(T,R,Q,H,Pinf1,Pstar1,Y,trend,pp,mm,smpl,mf)
-
 % function [alphahat,epsilonhat,etahat,a, aK] = DiffuseKalmanSmootherH1(T,R,Q,H,Pinf1,Pstar1,Y,trend,pp,mm,smpl,mf)
 % Computes the diffuse kalman smoother with measurement error, in the case of a non-singular var-cov matrix 
 %
@@ -22,15 +21,28 @@ function [alphahat,epsilonhat,etahat,a, aK] = DiffuseKalmanSmootherH1(T,R,Q,H,Pi
 %    etahat:    smoothed shocks
 %    a:         matrix of one step ahead filtered state variables
 %    aK:        3D array of k step ahead filtered state variables
-
+%
 % SPECIAL REQUIREMENTS
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % modified by M. Ratto:
 % new output argument aK (1-step to k-step predictions)
diff --git a/matlab/DiffuseKalmanSmootherH3.m b/matlab/DiffuseKalmanSmootherH3.m
index 172d15a0e6..7a69f56fb3 100644
--- a/matlab/DiffuseKalmanSmootherH3.m
+++ b/matlab/DiffuseKalmanSmootherH3.m
@@ -1,5 +1,4 @@
 function [alphahat,epsilonhat,etahat,a1, aK] = DiffuseKalmanSmootherH3(T,R,Q,H,Pinf1,Pstar1,Y,trend,pp,mm,smpl,mf)
-
 % function [alphahat,epsilonhat,etahat,a1, aK] = DiffuseKalmanSmootherH3(T,R,Q,H,Pinf1,Pstar1,Y,trend,pp,mm,smpl,mf)
 % Computes the diffuse kalman smoother with measurement error, in the case of a singular var-cov matrix.
 % Univariate treatment of multivariate time series.
@@ -23,15 +22,28 @@ function [alphahat,epsilonhat,etahat,a1, aK] = DiffuseKalmanSmootherH3(T,R,Q,H,P
 %    etahat:    smoothed shocks
 %    a1:        matrix of one step ahead filtered state variables
 %    aK:        3D array of k step ahead filtered state variables
-
+%
 % SPECIAL REQUIREMENTS
 %   See "Filtering and Smoothing of State Vector for Diffuse State Space
 %   Models", S.J. Koopman and J. Durbin (2003, in Journal of Time Series 
 %   Analysis, vol. 24(1), pp. 85-98). 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 % Modified by M. Ratto
 % New output argument aK: 1-step to nk-stpe ahed predictions)
@@ -45,7 +57,6 @@ function [alphahat,epsilonhat,etahat,a1, aK] = DiffuseKalmanSmootherH3(T,R,Q,H,P
 % some bugs corrected in the DKF part of the smoother (Z matrix and
 % alphahat)
 
-
 global options_
 
 nk = options_.nk;
diff --git a/matlab/DiffuseKalmanSmootherH3corr.m b/matlab/DiffuseKalmanSmootherH3corr.m
index b3e92e9637..fb7b060cc0 100644
--- a/matlab/DiffuseKalmanSmootherH3corr.m
+++ b/matlab/DiffuseKalmanSmootherH3corr.m
@@ -27,9 +27,23 @@ function [alphahat,epsilonhat,etahat,a1] = DiffuseKalmanSmootherH3corr(T,R,Q,H,P
 %   See "Fast Filtering and Smoothing for Multivariate State Space
 %   Models", S.J. Koopman and J. Durbin (2000, in Journal of Time Series 
 %   Analysis, vol. 21(3), pp. 281-296).  
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
+
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global options_;
 
diff --git a/matlab/DsgeLikelihood.m b/matlab/DsgeLikelihood.m
index b3e4808c9e..47dd3c3135 100644
--- a/matlab/DsgeLikelihood.m
+++ b/matlab/DsgeLikelihood.m
@@ -18,9 +18,24 @@ function [fval,cost_flag,ys,trend_coeff,info] = DsgeLikelihood(xparam1,gend,data
 %               
 % SPECIAL REQUIREMENTS
 %   Adapted from mj_optmumlik.m
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
+
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
   global bayestopt_ estim_params_ options_ trend_coeff_ M_ oo_ xparam1_test
   fval		= [];
   ys		= [];
diff --git a/matlab/DsgeSmoother.m b/matlab/DsgeSmoother.m
index e6594a641b..158b75ec8b 100644
--- a/matlab/DsgeSmoother.m
+++ b/matlab/DsgeSmoother.m
@@ -27,9 +27,23 @@ function [alphahat,etahat,epsilonhat,ahat,SteadyState,trend_coeff,aK,T,R,P,PK,d,
 %
 % SPECIAL REQUIREMENTS
 %   None
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global bayestopt_ M_ oo_ estim_params_ options_
 
diff --git a/matlab/GetPosteriorParametersStatistics.m b/matlab/GetPosteriorParametersStatistics.m
index a130160972..3ce58e1d60 100644
--- a/matlab/GetPosteriorParametersStatistics.m
+++ b/matlab/GetPosteriorParametersStatistics.m
@@ -10,9 +10,23 @@ function get_posterior_parameters_statistics()
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global estim_params_ M_ options_ bayestopt_ oo_
 
diff --git a/matlab/McMCDiagnostics.m b/matlab/McMCDiagnostics.m
index 2e34f6bd70..aa3d56a5cb 100644
--- a/matlab/McMCDiagnostics.m
+++ b/matlab/McMCDiagnostics.m
@@ -1,5 +1,4 @@
 function McMCDiagnostics
-
 % function McMCDiagnostics
 % Computes convergence tests 
 % 
@@ -11,10 +10,23 @@ function McMCDiagnostics
 %
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2008)
-% Gnu Public License.
 
+% Copyright (C) 2005-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global options_ estim_params_ M_ 
 
diff --git a/matlab/bksup1.m b/matlab/bksup1.m
index a7516916cc..61fc00da77 100644
--- a/matlab/bksup1.m
+++ b/matlab/bksup1.m
@@ -1,5 +1,4 @@
 function d = bksup1(ny,jcf)
-
 % function d = bksup1(ny,jcf)
 % Solves deterministic models recursively by backsubstitution for one lead/lag
 %
@@ -12,10 +11,23 @@ function d = bksup1(ny,jcf)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
 
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global options_ iyf c 
 
diff --git a/matlab/bksupk.m b/matlab/bksupk.m
index fd838dc822..bc13cb4f68 100644
--- a/matlab/bksupk.m
+++ b/matlab/bksupk.m
@@ -14,9 +14,23 @@ function d1 = bksupk(ny,fid,jcf,icc1)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
+
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_
 
diff --git a/matlab/bvar_density.m b/matlab/bvar_density.m
index 92e898cb47..245b72b8f6 100644
--- a/matlab/bvar_density.m
+++ b/matlab/bvar_density.m
@@ -1,5 +1,4 @@
 function bvar_density(maxnlags)
-
 % function bvar_density(maxnlags)
 % computes the density of a bayesian var
 %
@@ -11,9 +10,24 @@ function bvar_density(maxnlags)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
+
+% Copyright (C) 2003-2007 Chris Sims
+% Copyright (C) 2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     for nlags = 1:maxnlags
         [ny, nx, posterior, prior] = bvar_toolbox(nlags);
diff --git a/matlab/bvar_forecast.m b/matlab/bvar_forecast.m
index 29e5d2ab59..b2c655e440 100644
--- a/matlab/bvar_forecast.m
+++ b/matlab/bvar_forecast.m
@@ -1,5 +1,4 @@
 function bvar_forecast(nlags)
-
 % function bvar_forecast(nlags)
 % builds forecats for a bvar model
 %
@@ -11,9 +10,23 @@ function bvar_forecast(nlags)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2007-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     global options_ oo_ M_
     
diff --git a/matlab/bvar_toolbox.m b/matlab/bvar_toolbox.m
index 3271edcee5..17d203ca75 100644
--- a/matlab/bvar_toolbox.m
+++ b/matlab/bvar_toolbox.m
@@ -1,5 +1,4 @@
 function [ny, nx, posterior, prior, forecast_data] = bvar_toolbox(nlags)
-
 %function [ny, nx, posterior, prior, forecast_data] = bvar_toolbox(nlags)
 % bvar_toolbox  Routines shared between BVAR methods
 % Computes several things for the estimations of a BVAR(nlags)
@@ -41,10 +40,25 @@ function [ny, nx, posterior, prior, forecast_data] = bvar_toolbox(nlags)
 %    This function uses the following Dynare options:
 %    - datafile, first_obs, varobs, xls_sheet, xls_range, nobs, presample
 %    - bvar_prior_{tau,decay,lambda,mu,omega,flat,train}
-%    
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
     
+% Copyright (C) 2003-2007 Chris Sims
+% Copyright (C) 2007-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
     global options_
     
     % Load dataset
diff --git a/matlab/check_posterior_analysis_data.m b/matlab/check_posterior_analysis_data.m
index b774a13d6f..d474bdaf77 100644
--- a/matlab/check_posterior_analysis_data.m
+++ b/matlab/check_posterior_analysis_data.m
@@ -1,6 +1,21 @@
 function [info,description] = check_posterior_analysis_data(type,M_)
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
     
     info = 0;
     if nargout>1
diff --git a/matlab/compute_mh_covariance_matrix.m b/matlab/compute_mh_covariance_matrix.m
index c7e7425f53..bb458c872b 100644
--- a/matlab/compute_mh_covariance_matrix.m
+++ b/matlab/compute_mh_covariance_matrix.m
@@ -13,9 +13,23 @@ function [m0,s0] = compute_mh_covariance_matrix()
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_ estim_params_
 
diff --git a/matlab/dr1.m b/matlab/dr1.m
index 03eae53ecb..ddb7707356 100644
--- a/matlab/dr1.m
+++ b/matlab/dr1.m
@@ -29,9 +29,23 @@ function [dr,info,M_,options_,oo_] = dr1(dr,task,M_,options_,oo_)
 % SPECIAL REQUIREMENTS
 %   none.
 %  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2008)
-% Gnu Public License.
+
+% Copyright (C) 1996-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     info = 0;
   
diff --git a/matlab/draw_prior_density.m b/matlab/draw_prior_density.m
index 4fac2a1f30..02eeedf8dc 100644
--- a/matlab/draw_prior_density.m
+++ b/matlab/draw_prior_density.m
@@ -1,5 +1,4 @@
 function [x,f,abscissa,dens,binf,bsup] = draw_prior_density(indx);
-
 % function [x,f,abscissa,dens,binf,bsup] = draw_prior_density(indx)
 % plots prior density
 %
@@ -16,10 +15,23 @@ function [x,f,abscissa,dens,binf,bsup] = draw_prior_density(indx);
 %    
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global bayestopt_
 
diff --git a/matlab/dsample.m b/matlab/dsample.m
index 986a560ee6..8d24b7cc8a 100644
--- a/matlab/dsample.m
+++ b/matlab/dsample.m
@@ -1,5 +1,4 @@
 function dsample(s1,s2)
-		
 % function dsample(s1,s2)
 % This optional command permits to reduce the number of periods considered in following output commands.
 % If only one argument is provided, output is from period 1 to the period specified in the DSAMPLE command. 
@@ -15,10 +14,23 @@ function dsample(s1,s2)
 %    
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
 
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global options_
 
diff --git a/matlab/dsge_posterior_theoretical_correlation.m b/matlab/dsge_posterior_theoretical_correlation.m
index 690ab0814c..3a1d55c054 100644
--- a/matlab/dsge_posterior_theoretical_correlation.m
+++ b/matlab/dsge_posterior_theoretical_correlation.m
@@ -1,4 +1,5 @@
 function [nvar,vartan,CorrFileNumber] = dsge_posterior_theoretical_correlation(SampleSize,nar,M_,options_,oo_)
+%function [nvar,vartan,CorrFileNumber] = dsge_posterior_theoretical_correlation(SampleSize,nar,M_,options_,oo_)
 % This function estimates the posterior density of the endogenous
 % variables second order moments. 
 % 
@@ -18,10 +19,23 @@ function [nvar,vartan,CorrFileNumber] = dsge_posterior_theoretical_correlation(S
 %                                                   resol.m
 %                                                   th_autocovariances.m    
 %                                                   posterior_moments.m
-%    
-%  
-% part of DYNARE, copyright Dynare Team (2007-2008)
-% Gnu Public License.
+
+% Copyright (C) 2007-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 type = 'posterior';
     
diff --git a/matlab/dsge_posterior_theoretical_covariance.m b/matlab/dsge_posterior_theoretical_covariance.m
index 4b32d3a09f..3b238cf8db 100644
--- a/matlab/dsge_posterior_theoretical_covariance.m
+++ b/matlab/dsge_posterior_theoretical_covariance.m
@@ -18,10 +18,23 @@ function [nvar,vartan,CovarFileNumber] = dsge_posterior_theoretical_covariance(S
 %                                                   resol.m
 %                                                   th_autocovariances.m    
 %                                                   posterior_moments.m
-%    
-%  
-% part of DYNARE, copyright Dynare Team (2007-2008)
-% Gnu Public License.
+
+% Copyright (C) 2007-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 type = 'posterior';
     
diff --git a/matlab/dsgevar_posterior_density.m b/matlab/dsgevar_posterior_density.m
index c488a32f60..73ec1e0b28 100644
--- a/matlab/dsgevar_posterior_density.m
+++ b/matlab/dsgevar_posterior_density.m
@@ -15,9 +15,24 @@ function bvar = dsgevar_posterior_density(deep)
 % SPECIAL REQUIREMENTS
 %   none
 %  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2007)
-% Gnu Public License.
+
+% Copyright (C) 1996-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 global options_ M_
 
 gend = options_.nobs;
diff --git a/matlab/dyn2vec.m b/matlab/dyn2vec.m
index 84118cc99f..7a3ee987eb 100644
--- a/matlab/dyn2vec.m
+++ b/matlab/dyn2vec.m
@@ -1,4 +1,5 @@
-% function [z,zss]=dyn2vec(s1,s2);
+function [z,zss]=dyn2vec(s1,s2)
+% function [z,zss]=dyn2vec(s1,s2)
 % Takes Dynare variables from oo_.endo_simul and copies them into matlab global vectors
 %
 % INPUTS
@@ -12,12 +13,23 @@
 % SPECIAL REQUIREMENTS
 %   none
 %  
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
-
 
-function [z,zss]=dyn2vec(s1,s2);
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ oo_ options_
 
diff --git a/matlab/dynare.m b/matlab/dynare.m
index c5f1d5c512..4fa9e086b2 100644
--- a/matlab/dynare.m
+++ b/matlab/dynare.m
@@ -15,9 +15,23 @@ function dynare(fname, varargin)
 %        
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
+
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 warning_config
 
diff --git a/matlab/dynare_config.m b/matlab/dynare_config.m
index 941f7be921..6b7d9a3db4 100644
--- a/matlab/dynare_config.m
+++ b/matlab/dynare_config.m
@@ -1,9 +1,9 @@
 function dynareroot = dynare_config(path_to_dynare)
+%function dynareroot = dynare_config(path_to_dynare)
 % This function tests the existence of valid mex files (for qz
 % decomposition, solution to sylvester equation and kronecker
 % products...) and, if needed, add paths to the matlab versions
 % of these routines.
-% 
 %
 % INPUTS
 %   none
@@ -13,9 +13,24 @@ function dynareroot = dynare_config(path_to_dynare)
 %        
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
+
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 if nargin
     addpath(path_to_dynare);
 end
diff --git a/matlab/dynare_solve.m b/matlab/dynare_solve.m
index 23382c6b2f..c376a4f1aa 100644
--- a/matlab/dynare_solve.m
+++ b/matlab/dynare_solve.m
@@ -1,5 +1,4 @@
 function [x,info] = dynare_solve(func,x,jacobian_flag,varargin)
-
 % function [x,info] = dynare_solve(func,x,jacobian_flag,varargin)
 % proposes different solvers
 %
@@ -16,10 +15,23 @@ function [x,info] = dynare_solve(func,x,jacobian_flag,varargin)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
 
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global options_
   
diff --git a/matlab/dynasave.m b/matlab/dynasave.m
index bfac0b9960..2531a13ec2 100644
--- a/matlab/dynasave.m
+++ b/matlab/dynasave.m
@@ -14,10 +14,23 @@ function dynasave(s,var_list)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
 
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ oo_
 
diff --git a/matlab/dynatype.m b/matlab/dynatype.m
index 3ed73583b7..fe606dbf50 100644
--- a/matlab/dynatype.m
+++ b/matlab/dynatype.m
@@ -1,5 +1,4 @@
 function dynatype (s,var_list)
-
 % function dynatype (s,var_list)
 % This optional command saves the simulation results in a text file. The name of each 
 % variable preceeds the corresponding results. This command must follow SIMUL.
@@ -14,10 +13,23 @@ function dynatype (s,var_list)
 %
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
 
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ oo_
 
diff --git a/matlab/ff1_.m b/matlab/ff1_.m
index 2a645ccf08..4b6b666cef 100644
--- a/matlab/ff1_.m
+++ b/matlab/ff1_.m
@@ -11,9 +11,23 @@ function y=ff1_(x)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
+
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global it_ M_ oo_
 
diff --git a/matlab/ffill.m b/matlab/ffill.m
index 40edae2e06..646f2f2576 100644
--- a/matlab/ffill.m
+++ b/matlab/ffill.m
@@ -1,7 +1,6 @@
 function [a,b] = ffill(x,ixc,y)
-
 % function [a,b] = ffill(x,ixc,y)
-% Makes the horizontale concatenation if x exists
+% Makes the horizontal concatenation if x exists
 % and fills the matrix with 0 if x and y are not the same size.
 %
 % INPUTS
@@ -15,10 +14,23 @@ function [a,b] = ffill(x,ixc,y)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
 
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 xc = size(x,1) ;
 
diff --git a/matlab/forcst.m b/matlab/forcst.m
index 986f609890..bfdb6126df 100644
--- a/matlab/forcst.m
+++ b/matlab/forcst.m
@@ -17,9 +17,23 @@ function [yf,int_width]=forcst(dr,y0,horizon,var_list)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
     
     global M_  oo_ options_ 
     
diff --git a/matlab/gensylv/gensylv.m b/matlab/gensylv/gensylv.m
index f60ce903d4..5ccacb271d 100644
--- a/matlab/gensylv/gensylv.m
+++ b/matlab/gensylv/gensylv.m
@@ -1,4 +1,5 @@
 function E = gensylv(fake,A,B,C,D)
+%function E = gensylv(fake,A,B,C,D)
 % Solves a Sylvester equation.
 %
 % INPUTS
@@ -15,11 +16,25 @@ function E = gensylv(fake,A,B,C,D)
 %   none.
 %
 % SPECIAL REQUIREMENTS
-%   none.
-%  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2008)
-% Gnu Public License.
+%   none.  
+
+% Copyright (C) 1996-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 C  = kron(C,C); 
 x0 = sylvester3(A,B,C,D);
-E  = sylvester3a(x0,A,B,C,D);
\ No newline at end of file
+E  = sylvester3a(x0,A,B,C,D);
diff --git a/matlab/get_date_of_a_file.m b/matlab/get_date_of_a_file.m
index 30cf5de331..a3155e0f68 100644
--- a/matlab/get_date_of_a_file.m
+++ b/matlab/get_date_of_a_file.m
@@ -1,8 +1,25 @@
 function [d1,d2] = get_date_of_a_file(filename)
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+%function [d1,d2] = get_date_of_a_file(filename)
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
     info = dir(filename);
     d1 = info.datenum;
     if nargout>1
         d2 = info.date;
-    end
\ No newline at end of file
+    end
diff --git a/matlab/get_innovation_contemporaneous_impact.m b/matlab/get_innovation_contemporaneous_impact.m
index 8e8f188d93..9cb5442b67 100644
--- a/matlab/get_innovation_contemporaneous_impact.m
+++ b/matlab/get_innovation_contemporaneous_impact.m
@@ -23,9 +23,23 @@ function B = get_innovation_contemporaneous_impact(type,info)
 %
 % SPECIAL REQUIREMENTS
 %   This function needs to be run after the estimation of a model.
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global oo_ M_ bayestopt_ options_
 
diff --git a/matlab/get_name_of_the_last_mh_file.m b/matlab/get_name_of_the_last_mh_file.m
index f3508b33b6..95cee5bc06 100644
--- a/matlab/get_name_of_the_last_mh_file.m
+++ b/matlab/get_name_of_the_last_mh_file.m
@@ -1,6 +1,23 @@
 function mhname = get_name_of_the_last_mh_file(M_)
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+%function mhname = get_name_of_the_last_mh_file(M_)
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
     model_name = M_.fname ;
     mcmc_directory = M_.dname ;
     load([ mcmc_directory '/metropolis/' model_name '_mh_history.mat']) ;
diff --git a/matlab/get_the_name.m b/matlab/get_the_name.m
index 2cfe7b6a97..e625d1bd4b 100644
--- a/matlab/get_the_name.m
+++ b/matlab/get_the_name.m
@@ -14,9 +14,23 @@ function [nam,texnam] = get_the_name(k,TeX)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
+
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ estim_params_ options_
 
diff --git a/matlab/global_initialization.m b/matlab/global_initialization.m
index 1ffc014d42..2206e2e8c7 100644
--- a/matlab/global_initialization.m
+++ b/matlab/global_initialization.m
@@ -1,4 +1,5 @@
 function global_initialization()
+%function global_initialization()
 % initializes global variables and options for DYNARE
 %
 % INPUTS
@@ -9,9 +10,24 @@ function global_initialization()
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
   global oo_ M_ options_ ct_ endval_ rplottype_
 
   ct_=0;
diff --git a/matlab/homotopy2.m b/matlab/homotopy2.m
index 106a62256b..e970bf3c86 100644
--- a/matlab/homotopy2.m
+++ b/matlab/homotopy2.m
@@ -24,9 +24,23 @@ function homotopy2(values, step_nbr)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ oo_ options_
 
diff --git a/matlab/indnv.m b/matlab/indnv.m
index df4b18a670..be3dbd0ca1 100644
--- a/matlab/indnv.m
+++ b/matlab/indnv.m
@@ -12,9 +12,23 @@ function a=indnv(x,y)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
+
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 a = zeros(size(x)) ;
 
diff --git a/matlab/initial_estimation_checks.m b/matlab/initial_estimation_checks.m
index d3b9af8109..8e4c6cb926 100644
--- a/matlab/initial_estimation_checks.m
+++ b/matlab/initial_estimation_checks.m
@@ -13,10 +13,23 @@ function initial_estimation_checks(xparam1,gend,data)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
 
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global dr1_test bayestopt_ estim_params_ options_ oo_ M_
 
diff --git a/matlab/initvalf.m b/matlab/initvalf.m
index f7e28ce957..3a70aa4396 100644
--- a/matlab/initvalf.m
+++ b/matlab/initvalf.m
@@ -13,9 +13,23 @@ function initvalf(fname)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
+
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ oo_ options_
   global y_start_date ex_start_date 
diff --git a/matlab/inverse_gamma_specification.m b/matlab/inverse_gamma_specification.m
index 7b10b0405f..f2b8585955 100644
--- a/matlab/inverse_gamma_specification.m
+++ b/matlab/inverse_gamma_specification.m
@@ -16,9 +16,23 @@ function [s,nu] = inverse_gamma_specification(mu,sigma,type)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 sigma2 = sigma^2;
 mu2 = mu^2;
diff --git a/matlab/irf.m b/matlab/irf.m
index ebefdaa9e1..717c74806c 100644
--- a/matlab/irf.m
+++ b/matlab/irf.m
@@ -16,9 +16,23 @@ function y = irf(dr, e1, long, drop, replic, iorder)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ oo_ options_
 
diff --git a/matlab/ispd.m b/matlab/ispd.m
index a2c785e549..99cc181be2 100644
--- a/matlab/ispd.m
+++ b/matlab/ispd.m
@@ -11,9 +11,23 @@ function test = ispd(A)
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%  
-% part of DYNARE, copyright Dynare Team (2007-2008)
-% Gnu Public License.
+
+% Copyright (C) 2007-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 m = length(A);% I do not test for a square matrix...
 test = 1;
diff --git a/matlab/kalman_transition_matrix.m b/matlab/kalman_transition_matrix.m
index b43512f80f..e1cc9ad48b 100644
--- a/matlab/kalman_transition_matrix.m
+++ b/matlab/kalman_transition_matrix.m
@@ -14,9 +14,23 @@ function [A,B] = kalman_transition_matrix(dr,iv,ic,aux,exo_nbr)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
   
   n_iv = length(iv);
   n_ir1 = size(aux,1);
diff --git a/matlab/kernel_density_estimate.m b/matlab/kernel_density_estimate.m
index 7320faf28f..172097c870 100644
--- a/matlab/kernel_density_estimate.m
+++ b/matlab/kernel_density_estimate.m
@@ -23,8 +23,23 @@ function [abscissa,f] = kernel_density_estimate(data,number_of_grid_points,numbe
 %    A kernel density estimator is used (see Silverman [1986], "Density estimation for statistics and data analysis")
 %    The code is adapted from Anders Holtsberg's matlab toolbox (stixbox). 
 %
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
+
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 if min(size(data))>1
     error('kernel_density_estimate:: data must be a one dimensional array.');
diff --git a/matlab/kronecker/A_times_B_kronecker_C.m b/matlab/kronecker/A_times_B_kronecker_C.m
index 8374deef44..a0a863937d 100644
--- a/matlab/kronecker/A_times_B_kronecker_C.m
+++ b/matlab/kronecker/A_times_B_kronecker_C.m
@@ -1,4 +1,5 @@
 function D = A_times_B_kronecker_C(A,B,C)
+%function D = A_times_B_kronecker_C(A,B,C)
 % Computes A * kron(B,C). 
 %
 % INPUTS
@@ -14,10 +15,23 @@ function D = A_times_B_kronecker_C(A,B,C)
 %
 % SPECIAL REQUIREMENTS
 %   none.
-%  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2008)
-% Gnu Public License.
+
+% Copyright (C) 1996-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
     
 % Chek number of inputs and outputs.
 if nargin>3 | nargin<2
diff --git a/matlab/kronecker/sparse_hessian_times_B_kronecker_C.m b/matlab/kronecker/sparse_hessian_times_B_kronecker_C.m
index 76c3b4b00a..12c00209f8 100644
--- a/matlab/kronecker/sparse_hessian_times_B_kronecker_C.m
+++ b/matlab/kronecker/sparse_hessian_times_B_kronecker_C.m
@@ -1,4 +1,5 @@
 function D = sparse_hessian_times_B_kronecker_C(A,B,C)
+%function D = sparse_hessian_times_B_kronecker_C(A,B,C)
 % Computes A * kron(B,C) where A is a sparse matrix.
 %
 % INPUTS
@@ -14,10 +15,24 @@ function D = sparse_hessian_times_B_kronecker_C(A,B,C)
 %
 % SPECIAL REQUIREMENTS
 %   none.
-%  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2008)
-% Gnu Public License.
+
+% Copyright (C) 1996-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 switch nargin
   case 3
     D = A_times_B_kronecker_C(A,B,C);
@@ -25,4 +40,4 @@ switch nargin
     D = A_times_B_kronecker_C(A,B,B);
   otherwise
     error('Two or Three input arguments required!')
-end
\ No newline at end of file
+end
diff --git a/matlab/lnsrch1.m b/matlab/lnsrch1.m
index db8181be91..592da48deb 100644
--- a/matlab/lnsrch1.m
+++ b/matlab/lnsrch1.m
@@ -1,4 +1,5 @@
-% function [x,f,fvec,check]=lnsrch(xold,fold,g,p,stpmax,func,j1,j2,varargin)
+function [x,f,fvec,check]=lnsrch1(xold,fold,g,p,stpmax,func,j1,j2,varargin)
+% function [x,f,fvec,check]=lnsrch1(xold,fold,g,p,stpmax,func,j1,j2,varargin)
 % Computes the optimal step by minimizing the residual sum of squares
 %
 % INPUTS
@@ -21,13 +22,24 @@
 % 
 % SPECIAL REQUIREMENTS
 %   none
-%  
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
 
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-function [x,f,fvec,check]=lnsrch(xold,fold,g,p,stpmax,func,j1,j2,varargin)
   global options_
   
   alf = 1e-4 ;
diff --git a/matlab/lpdfgam.m b/matlab/lpdfgam.m
index 704c1ff92f..c3a4e778ae 100644
--- a/matlab/lpdfgam.m
+++ b/matlab/lpdfgam.m
@@ -13,9 +13,23 @@ function  ldens = lpdfgam(x,a,b);
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   ldens = -gammaln(a) -a*log(b)+ (a-1)*log(x) -x/b ;
 
diff --git a/matlab/lpdfgbeta.m b/matlab/lpdfgbeta.m
index d0c6936598..7623bc44ee 100644
--- a/matlab/lpdfgbeta.m
+++ b/matlab/lpdfgbeta.m
@@ -15,9 +15,23 @@ function ldens = lpdfgbeta(x,a,b,aa,bb);
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 ldens = -betaln(a,b) + (a-1)*log(x-aa) + (b-1)*log(bb-x) - (a+b-1)*log(bb-aa);
 
diff --git a/matlab/lpdfig1.m b/matlab/lpdfig1.m
index 1e77d416d9..cf5446448a 100644
--- a/matlab/lpdfig1.m
+++ b/matlab/lpdfig1.m
@@ -1,5 +1,4 @@
 function ldens = lpdfig1(x,s,nu)
-
 % function ldens = lpdfig1(x,s,nu)
 % log INVERSE GAMMA (type 1) 
 % X ~ IG1(s,nu)
@@ -9,16 +8,29 @@ function ldens = lpdfig1(x,s,nu)
 %    x:      density evatuated at x
 %    s:      shape parameter 
 %    nu:     scale parameter 
-
+%
 % OUTPUTS
 %    ldens:  the log INVERSE GAMMA density function (type 1)
 %        
 % SPECIAL REQUIREMENTS
 % See L. Bauwens, M. Lubrano and J-F. Richard [1999, appendix A] for more
 % details.
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-ldens = log(2) - gammaln(nu/2) - (nu/2).*log(2/s) - (nu+1)*log(x) - .5*s./(x.^2);
\ No newline at end of file
+ldens = log(2) - gammaln(nu/2) - (nu/2).*log(2/s) - (nu+1)*log(x) - .5*s./(x.^2);
diff --git a/matlab/lpdfig2.m b/matlab/lpdfig2.m
index a8f472caa6..1cc398204e 100644
--- a/matlab/lpdfig2.m
+++ b/matlab/lpdfig2.m
@@ -1,5 +1,4 @@
 function ldens = lpdfig2(x,s,nu)
-
 % function ldens = lpdfig2(x,s,nu)
 % log INVERSE GAMMA (type 2) 
 % X ~ IG2(s,nu)
@@ -9,16 +8,29 @@ function ldens = lpdfig2(x,s,nu)
 %    x:      density evatuated at x
 %    s:      shape parameter 
 %    nu:     scale parameter 
-
+%
 % OUTPUTS
 %    ldens:  the log INVERSE GAMMA density function (type 2)
 %        
 % SPECIAL REQUIREMENTS
 % See L. Bauwens, M. Lubrano and J-F. Richard [1999, appendix A] for more
 % details.
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-ldens = - gammaln(nu/2) - (nu/2)*log(2/s) - .5*(nu+2)*log(x) -.5*s./x;
\ No newline at end of file
+ldens = - gammaln(nu/2) - (nu/2)*log(2/s) - .5*(nu+2)*log(x) -.5*s./x;
diff --git a/matlab/lpdfnorm.m b/matlab/lpdfnorm.m
index b7afde00fa..0279bb3998 100644
--- a/matlab/lpdfnorm.m
+++ b/matlab/lpdfnorm.m
@@ -1,5 +1,4 @@
 function  f = lpdfnorm(x,m,s)
-
 % function f = lpdfnorm(x,m,s)
 % The log of the normal density function 
 %
@@ -7,16 +6,29 @@ function  f = lpdfnorm(x,m,s)
 %    x:      density evatuated at x
 %    m:      mean 
 %    s:      standard deviation 
-
+%
 % OUTPUTS
 %    f:      the log of the normal density function
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
 
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 if nargin<3, s=1; end
 if nargin<2, m=0; end
diff --git a/matlab/make_ex_.m b/matlab/make_ex_.m
index 3943f4f36d..b722a095f9 100644
--- a/matlab/make_ex_.m
+++ b/matlab/make_ex_.m
@@ -11,9 +11,23 @@ function make_ex_
 % SPECIAL REQUIREMENTS
 %   none
 %  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2007)
-% Gnu Public License.
+
+% Copyright (C) 1996-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
   
   global M_ options_ oo_ ex0_ ex_det0_
   
diff --git a/matlab/make_y_.m b/matlab/make_y_.m
index a2e20c1830..72cfd6bda7 100644
--- a/matlab/make_y_.m
+++ b/matlab/make_y_.m
@@ -11,9 +11,24 @@ function make_y_
 % SPECIAL REQUIREMENTS
 %   none
 %  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2007)
-% Gnu Public License.
+
+% Copyright (C) 1996-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
   global M_ options_ oo_ ys0_ 
   
   options_ = set_default_option(options_,'periods',0);
diff --git a/matlab/marginal_density.m b/matlab/marginal_density.m
index 32a86974e6..97a4364ed5 100644
--- a/matlab/marginal_density.m
+++ b/matlab/marginal_density.m
@@ -1,5 +1,4 @@
 function marginal = marginal_density()
-
 % function marginal = marginal_density()
 % Computes the marginal density
 %
@@ -11,10 +10,23 @@ function marginal = marginal_density()
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2005-2007)
-% Gnu Public License.
 
+% Copyright (C) 2005-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_ estim_params_ oo_
 
diff --git a/matlab/matlab_ver_less_than.m b/matlab/matlab_ver_less_than.m
index 4b83843f89..499ebb3aaa 100644
--- a/matlab/matlab_ver_less_than.m
+++ b/matlab/matlab_ver_less_than.m
@@ -17,9 +17,23 @@ function r = matlab_ver_less_than(verstr)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   ver_struct = ver('matlab');
   cur_verstr = ver_struct.Version;
diff --git a/matlab/metropolis_hastings_initialization.m b/matlab/metropolis_hastings_initialization.m
index a3570b0e34..1af16a4b58 100644
--- a/matlab/metropolis_hastings_initialization.m
+++ b/matlab/metropolis_hastings_initialization.m
@@ -15,9 +15,24 @@ function [ ix2, ilogpo2, ModelName, MhDirectoryName, fblck, fline, npar, nblck,
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 global M_ options_ bayestopt_
 
 ModelName = M_.fname;
diff --git a/matlab/mh_optimal_bandwidth.m b/matlab/mh_optimal_bandwidth.m
index 884898a4d4..958d358b36 100644
--- a/matlab/mh_optimal_bandwidth.m
+++ b/matlab/mh_optimal_bandwidth.m
@@ -23,11 +23,24 @@ function optimal_bandwidth = mh_optimal_bandwidth(data,number_of_draws,bandwidth
 % REFERENCES:
 %   [1] M. Skold and G.O. Roberts [2003], "Density estimation for the Metropolis-Hastings algorithm". 
 %   [2] Silverman [1986], "Density estimation for statistics and data analysis". 
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
-  
 
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+  
 %% Kernel specifications.
 if strcmpi(kernel_function,'gaussian')
     % Kernel definition
diff --git a/matlab/mode_check.m b/matlab/mode_check.m
index b4b4ac9ac7..fc2ded6523 100644
--- a/matlab/mode_check.m
+++ b/matlab/mode_check.m
@@ -17,9 +17,23 @@ function mode_check(x,fval,hessian,gend,data,lb,ub)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global bayestopt_ M_ options_
 
diff --git a/matlab/my_subplot.m b/matlab/my_subplot.m
index 41963ebd69..2f1e3c5495 100644
--- a/matlab/my_subplot.m
+++ b/matlab/my_subplot.m
@@ -16,9 +16,23 @@ function my_subplot(i,imax,irow,icol,fig_title)
 %
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   nfig_max = irow*icol;
   if imax < nfig_max
diff --git a/matlab/numgrad3.m b/matlab/numgrad3.m
index e370539f0c..e1203536ea 100644
--- a/matlab/numgrad3.m
+++ b/matlab/numgrad3.m
@@ -6,9 +6,23 @@ function [g, badg, f0, f1, f2] = numgrad3(fcn,x,varargin)
 %
 % See section 25.3.4 in Abramovitz and Stegun (1972, Tenth Printing, December) Handbook of Mathematical Functions.
 % http://www.math.sfu.ca/~cbm/aands/ 
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
 %
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 f0 = NaN;
 f1 = NaN;
diff --git a/matlab/numgrad5.m b/matlab/numgrad5.m
index fde4a30a6a..8ff0ef3bae 100644
--- a/matlab/numgrad5.m
+++ b/matlab/numgrad5.m
@@ -9,8 +9,23 @@ function [g, badg, f0, f1, f2, f3, f4] = numgrad5(fcn,x,varargin)
 %
 % TODO Try Four points formula when cost_flag3=0 or cost_flag4=0.
 %
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 f0 = NaN;
 f1 = NaN;
diff --git a/matlab/octave_ver_less_than.m b/matlab/octave_ver_less_than.m
index 25105c489f..f42fba1af5 100644
--- a/matlab/octave_ver_less_than.m
+++ b/matlab/octave_ver_less_than.m
@@ -14,9 +14,23 @@ function r = octave_ver_less_than(verstr)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   cur_verstr = version();
   
diff --git a/matlab/plot_priors.m b/matlab/plot_priors.m
index 3eb6a35609..a8ee237c6a 100644
--- a/matlab/plot_priors.m
+++ b/matlab/plot_priors.m
@@ -11,9 +11,23 @@ function plot_priors
 %    
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2004-2008)
-% Gnu Public License.
+
+% Copyright (C) 2004-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global bayestopt_ M_ options_
 
diff --git a/matlab/posterior_analysis.m b/matlab/posterior_analysis.m
index 14c80e3358..15b656514e 100644
--- a/matlab/posterior_analysis.m
+++ b/matlab/posterior_analysis.m
@@ -1,6 +1,21 @@
 function oo_ = posterior_analysis(type,arg1,arg2,arg3,options_,M_,oo_)  
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
     
     info = check_posterior_analysis_data(type,M_);
     SampleSize = options_.PosteriorSampleSize;
diff --git a/matlab/posterior_moments.m b/matlab/posterior_moments.m
index 9686b1dab9..767ded9652 100644
--- a/matlab/posterior_moments.m
+++ b/matlab/posterior_moments.m
@@ -20,8 +20,23 @@ function [post_mean, post_median, post_var, hpd_interval, post_deciles, density]
 %    Other matlab routines distributed with Dynare: mh_optimal_bandwidth.m 
 %                                                   kernel_density_estimate.m.
 %
-% part of DYNARE, copyright Dynare Team (2005-2008)
-% Gnu Public License.
+
+% Copyright (C) 2005-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 xx = xx(:);
 xx = sort(xx);
diff --git a/matlab/prior_bounds.m b/matlab/prior_bounds.m
index 8cb6a78d3d..4894006426 100644
--- a/matlab/prior_bounds.m
+++ b/matlab/prior_bounds.m
@@ -1,5 +1,4 @@
 function bounds = prior_bounds(bayestopt)
-
 % function bounds = prior_bounds(bayestopt)
 % computes practical bounds for prior density
 %
@@ -11,10 +10,23 @@ function bounds = prior_bounds(bayestopt)
 %    
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
 
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global options_
 
diff --git a/matlab/prior_draw.m b/matlab/prior_draw.m
index e833fa5e97..f573879eed 100644
--- a/matlab/prior_draw.m
+++ b/matlab/prior_draw.m
@@ -1,5 +1,4 @@
 function pdraw = prior_draw(init,cc)
-
 % function pdraw = prior_draw(init,cc)
 % Builds one draw from the prior distribution. 
 % 
@@ -15,10 +14,23 @@ function pdraw = prior_draw(init,cc)
 %
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
 
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global estim_params_  bayestopt_
 persistent fname npar bounds pshape pmean pstd a b p1 p2 p3 p4 condition
diff --git a/matlab/priordens.m b/matlab/priordens.m
index f1d4bbaac5..a59196cafa 100644
--- a/matlab/priordens.m
+++ b/matlab/priordens.m
@@ -22,9 +22,23 @@ function lnprior = priordens(para, pshape, p1, p2, p3, p4)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 lnprior = 0;
 nprio 	= length(pshape);
diff --git a/matlab/qz/mjdgges.m b/matlab/qz/mjdgges.m
index f4544cbcf0..819a3d9224 100644
--- a/matlab/qz/mjdgges.m
+++ b/matlab/qz/mjdgges.m
@@ -1,4 +1,5 @@
 function [ss,tt,w,sdim,eigval,info] = mjdgges(e,d,qz_criterium)
+%function [ss,tt,w,sdim,eigval,info] = mjdgges(e,d,qz_criterium)
 % QZ decomposition, Sims' codes are used.
 %
 % INPUTS
@@ -19,10 +20,23 @@ function [ss,tt,w,sdim,eigval,info] = mjdgges(e,d,qz_criterium)
 %
 % SPECIAL REQUIREMENTS
 %   none.
-%  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2008)
-% Gnu Public License.
+
+% Copyright (C) 1996-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
     
 % Chek number of inputs and outputs.
 if nargin>3 | nargin<2
diff --git a/matlab/rand_inverse_wishart.m b/matlab/rand_inverse_wishart.m
index e7c4ce2d98..f6de993e00 100644
--- a/matlab/rand_inverse_wishart.m
+++ b/matlab/rand_inverse_wishart.m
@@ -23,8 +23,23 @@ function G = rand_inverse_wishart(m, v, H_inv_upper_chol)
 % SPECIAL REQUIREMENT
 %     none
 %    
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     X = randn(v, m) * H_inv_upper_chol; 
     
diff --git a/matlab/rand_matrix_normal.m b/matlab/rand_matrix_normal.m
index 63e661d45c..32aa4bafd9 100644
--- a/matlab/rand_matrix_normal.m
+++ b/matlab/rand_matrix_normal.m
@@ -19,9 +19,23 @@ function B = rand_matrix_normal(n, p, M, Omega_lower_chol, Sigma_lower_chol)
 %        
 % SPECIAL REQUIREMENTS
 %    Same notations than: http://en.wikipedia.org/wiki/Matrix_normal_distribution
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     B1 = randn(n * p, 1);
     B2 = kron(Omega_lower_chol, Sigma_lower_chol) * B1;
diff --git a/matlab/rand_multivariate_normal.m b/matlab/rand_multivariate_normal.m
index bdac5e28ae..bd70c51dfd 100644
--- a/matlab/rand_multivariate_normal.m
+++ b/matlab/rand_multivariate_normal.m
@@ -13,7 +13,22 @@ function draw = rand_multivariate_normal(Mean,Sigma_upper_chol,n)
 %                                   covariance Sigma 
 %        
 % SPECIAL REQUIREMENTS
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
-    draw = Mean + randn(1,n) * Sigma_upper_chol;
\ No newline at end of file
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
+    draw = Mean + randn(1,n) * Sigma_upper_chol;
diff --git a/matlab/rand_multivariate_student.m b/matlab/rand_multivariate_student.m
index 216ae70b80..cc4fc0e75a 100644
--- a/matlab/rand_multivariate_student.m
+++ b/matlab/rand_multivariate_student.m
@@ -17,7 +17,23 @@ function draw = rand_multivariate_student(Mean,Sigma_upper_chol,df)
 %
 % NOTE See Zellner (appendix B.2, 1971) for a definition.     
 %    
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
     n = length(Mean);
-    draw = Mean + randn(1,n) * Sigma_upper_chol * sqrt(df/sum(randn(df,1).^2));
\ No newline at end of file
+    draw = Mean + randn(1,n) * Sigma_upper_chol * sqrt(df/sum(randn(df,1).^2));
diff --git a/matlab/random_walk_metropolis_hastings.m b/matlab/random_walk_metropolis_hastings.m
index f837d03554..b795aea743 100644
--- a/matlab/random_walk_metropolis_hastings.m
+++ b/matlab/random_walk_metropolis_hastings.m
@@ -1,4 +1,5 @@
 function random_walk_metropolis_hastings(TargetFun,ProposalFun,xparam1,vv,mh_bounds,varargin)
+%function random_walk_metropolis_hastings(TargetFun,ProposalFun,xparam1,vv,mh_bounds,varargin)
 % Random walk Metropolis-Hastings algorithm. 
 % 
 % INPUTS 
@@ -17,9 +18,24 @@ function random_walk_metropolis_hastings(TargetFun,ProposalFun,xparam1,vv,mh_bou
 %
 % SPECIAL REQUIREMENTS
 %   None.
-%  
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 global M_ options_ bayestopt_
 %%%%
 %%%% Initialization of the random walk metropolis-hastings chains.
diff --git a/matlab/resid.m b/matlab/resid.m
index 94e51960e5..0a92568042 100644
--- a/matlab/resid.m
+++ b/matlab/resid.m
@@ -1,5 +1,4 @@
 function resid(period)
-%
 % function resid(period)
 % Computes residuals associated with the guess values
 % 
@@ -11,11 +10,23 @@ function resid(period)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
-
 
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ options_ oo_ it_ endval_ z
   
diff --git a/matlab/resol.m b/matlab/resol.m
index 116450a8fa..e453bbcc77 100644
--- a/matlab/resol.m
+++ b/matlab/resol.m
@@ -21,9 +21,23 @@ function [dr,info]=resol(ys,check_flag)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
+
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_ oo_ bayestopt_
 global it_
diff --git a/matlab/rndprior.m b/matlab/rndprior.m
index 04bef9c655..786299bc1c 100644
--- a/matlab/rndprior.m
+++ b/matlab/rndprior.m
@@ -1,6 +1,4 @@
 function y = rndprior(bayestopt_)
-
-
 % function y = rndprior(bayestopt_)
 % Draws random number from the prior density
 %
@@ -12,10 +10,23 @@ function y = rndprior(bayestopt_)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2007)
-% Gnu Public License.
 
+% Copyright (C) 2003-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 pshape=bayestopt_.pshape;
 pmean=bayestopt_.pmean;
diff --git a/matlab/rplot.m b/matlab/rplot.m
index b35b636afb..939eca92c6 100644
--- a/matlab/rplot.m
+++ b/matlab/rplot.m
@@ -1,6 +1,4 @@
-
 function rplot(s1)
-		
 % function rplot(s1)
 % This optionnal command creates the plot of the variable trajectory. By default, the entire simulation period is
 % ploted. The instruction DSAMPLE permits to reduce the number of periods in the plot.
@@ -14,10 +12,23 @@ function rplot(s1)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
 
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ oo_ options_
 
diff --git a/matlab/selec_posterior_draws.m b/matlab/selec_posterior_draws.m
index e07d3bbc0f..8749fdd7cc 100644
--- a/matlab/selec_posterior_draws.m
+++ b/matlab/selec_posterior_draws.m
@@ -19,8 +19,23 @@ function SampleAddress = selec_posterior_draws(SampleSize,drsize)
 % SPECIAL REQUIREMENTS
 %   None.
 % 
-% part of DYNARE, copyright Dynare Team (2006-2008)
-% Gnu Public License.
+
+% Copyright (C) 2006-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
     
     global M_ options_ estim_params_ oo_
         
diff --git a/matlab/set_default_option.m b/matlab/set_default_option.m
index c7e355eb35..9b390c127a 100644
--- a/matlab/set_default_option.m
+++ b/matlab/set_default_option.m
@@ -13,9 +13,23 @@ function options=set_default_option(options,field,default)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   if ~isfield(options,field)
     options.(field) = default;
diff --git a/matlab/set_prior.m b/matlab/set_prior.m
index ec20b78294..ef278b2e82 100644
--- a/matlab/set_prior.m
+++ b/matlab/set_prior.m
@@ -1,5 +1,4 @@
 function [xparam1,estim_params_,bayestopt_,lb,ub]=set_prior(estim_params_)
-
 % function [xparam1,estim_params_,bayestopt_,lb,ub]=set_prior(estim_params_)
 % sets prior distributions
 %
@@ -15,10 +14,23 @@ function [xparam1,estim_params_,bayestopt_,lb,ub]=set_prior(estim_params_)
 %    
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
 
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ options_
   
diff --git a/matlab/set_shocks.m b/matlab/set_shocks.m
index 41d4a0413c..e32bddf5c3 100644
--- a/matlab/set_shocks.m
+++ b/matlab/set_shocks.m
@@ -17,9 +17,23 @@ function set_shocks(flag,k,ivar,values)
 %        
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2003-2008)
-% Gnu Public License.
+
+% Copyright (C) 2003-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global oo_ M_
   
diff --git a/matlab/set_state_space.m b/matlab/set_state_space.m
index 6f02dc6be3..0a4e2547fd 100644
--- a/matlab/set_state_space.m
+++ b/matlab/set_state_space.m
@@ -14,9 +14,23 @@ function dr=set_state_space(dr,M_)
 % SPECIAL REQUIREMENTS
 %   none
 %  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2007)
-% Gnu Public License.
+
+% Copyright (C) 1996-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 xlen = M_.maximum_endo_lead + M_.maximum_endo_lag + 1;
 klen = M_.maximum_endo_lag + M_.maximum_endo_lead + 1;
diff --git a/matlab/sim1.m b/matlab/sim1.m
index 5e984717d9..6bdafbb285 100644
--- a/matlab/sim1.m
+++ b/matlab/sim1.m
@@ -16,9 +16,23 @@ function sim1
 % SPECIAL REQUIREMENTS
 %   None.
 %  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2007)
-% Gnu Public License.
+
+% Copyright (C) 1996-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_ oo_
 global  iyp iyf ct_ M_ it_ c
diff --git a/matlab/simk.m b/matlab/simk.m
index 3631b48f2a..3309d78678 100644
--- a/matlab/simk.m
+++ b/matlab/simk.m
@@ -16,9 +16,24 @@ function simk
 % SPECIAL REQUIREMENTS
 %   None.
 %  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2007)
-% Gnu Public License.
+
+% Copyright (C) 1996-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
+
 global M_ options_ oo_
 global it_ iyr0 ct_ broyden_
 
diff --git a/matlab/simul.m b/matlab/simul.m
index 24ebe19658..67db669f82 100644
--- a/matlab/simul.m
+++ b/matlab/simul.m
@@ -11,10 +11,23 @@ function simul(dr)
 %   ...
 % SPECIAL REQUIREMENTS
 %   none
-%  
-%  
-% part of DYNARE, copyright Dynare Team (1996-2007)
-% Gnu Public License.
+
+% Copyright (C) 1996-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 global M_ options_ oo_ 
 global ys0_ ct_ endval_ 
diff --git a/matlab/simult.m b/matlab/simult.m
index 91e1c06ae0..dcd88d99ca 100644
--- a/matlab/simult.m
+++ b/matlab/simult.m
@@ -1,3 +1,4 @@
+function y_=simult(ys, dr)
 % function y_=simult(ys, dr)
 % Recursive Monte Carlo simulations
 %
@@ -11,12 +12,24 @@
 % SPECIAL REQUIREMENTS
 %    none
 %  
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
 
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-function y_=simult(ys, dr)
 global M_ options_ oo_
 global  it_ means_
 
diff --git a/matlab/simult_.m b/matlab/simult_.m
index b5ed86699a..5a7294bdbf 100644
--- a/matlab/simult_.m
+++ b/matlab/simult_.m
@@ -15,9 +15,23 @@
 % SPECIAL REQUIREMENTS
 %    none
 %  
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
+
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
 function y_=simult_(y0,dr,ex_,iorder)
 global M_ options_ it_
diff --git a/matlab/solve1.m b/matlab/solve1.m
index abe6a30d4f..9f6f84cbeb 100644
--- a/matlab/solve1.m
+++ b/matlab/solve1.m
@@ -1,5 +1,4 @@
 function [x,check] = solve1(func,x,j1,j2,jacobian_flag,varargin)
-
 % function [x,check] = solve1(func,x,j1,j2,jacobian_flag,varargin)
 % Solves systems of non linear equations of several variables
 %
@@ -18,10 +17,23 @@ function [x,check] = solve1(func,x,j1,j2,jacobian_flag,varargin)
 %
 % SPECIAL REQUIREMENTS
 %    none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2008)
-% Gnu Public License.
 
+% Copyright (C) 2001-2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ options_ fjac  
 
diff --git a/matlab/steady.m b/matlab/steady.m
index 7d3950af1a..b9031265f4 100644
--- a/matlab/steady.m
+++ b/matlab/steady.m
@@ -1,5 +1,4 @@
 function steady()
-
 % function steady()
 % computes and prints the steady state calculations
 %  
@@ -11,10 +10,23 @@ function steady()
 %
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
 
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ oo_ options_ ys0_ 
 
diff --git a/matlab/steady_.m b/matlab/steady_.m
index 34499332b5..58e0b8f205 100644
--- a/matlab/steady_.m
+++ b/matlab/steady_.m
@@ -12,9 +12,23 @@ function steady_()
 %
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2001-2007)
-% Gnu Public License.
+
+% Copyright (C) 2001-2007 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
   global M_ oo_ it_ options_
   
diff --git a/matlab/warning_config.m b/matlab/warning_config.m
index 67b2b2af07..a7a9a31af7 100644
--- a/matlab/warning_config.m
+++ b/matlab/warning_config.m
@@ -9,9 +9,23 @@ function warning_config()
 %        
 % SPECIAL REQUIREMENTS
 %   none
-%  
-% part of DYNARE, copyright Dynare Team (2008)
-% Gnu Public License.
+
+% Copyright (C) 2008 Dynare Team
+%
+% This file is part of Dynare.
+%
+% Dynare is free software: you can redistribute it and/or modify
+% it under the terms of the GNU General Public License as published by
+% the Free Software Foundation, either version 3 of the License, or
+% (at your option) any later version.
+%
+% Dynare is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
     warning on;
     if exist('OCTAVE_VERSION')
-- 
GitLab