diff --git a/recognition/activity_recognition.m b/recognition/activity_recognition.m
index a019253..d2a3236 100644
--- a/recognition/activity_recognition.m
+++ b/recognition/activity_recognition.m
@@ -1,3 +1,19 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
+
function results = activity_recognition(lambda, sigma)
close all
load('data.mat');
diff --git a/recognition/analyse_parameters.m b/recognition/analyse_parameters.m
index a21858d..05a5a47 100644
--- a/recognition/analyse_parameters.m
+++ b/recognition/analyse_parameters.m
@@ -1,3 +1,20 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
+
+
% clc
% clear
load('performances_refine_refin.mat');
diff --git a/recognition/data_conversion.m b/recognition/data_conversion.m
index f588f15..bdb2232 100644
--- a/recognition/data_conversion.m
+++ b/recognition/data_conversion.m
@@ -1,3 +1,20 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
+
+
clear; clc
% You need to download the WARD dataset to current folder.
%
diff --git a/recognition/find_parameter.m b/recognition/find_parameter.m
index f1f04a5..3c531b0 100644
--- a/recognition/find_parameter.m
+++ b/recognition/find_parameter.m
@@ -1,3 +1,20 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
+
+
clc
clear
lambda = 0.0014:0.0001:0.0020;
diff --git a/recognition/gaussian_kernel.m b/recognition/gaussian_kernel.m
index 9cb83ce..e66bdea 100644
--- a/recognition/gaussian_kernel.m
+++ b/recognition/gaussian_kernel.m
@@ -1,3 +1,20 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
+
+
function kf = gaussian_kernel(xf, yf, sigma)
% Calculating the gaussian kernel vertor
% Copyright Wang Chen, Nanyang Technoglogical University
diff --git a/recognition/kcc.m b/recognition/kcc.m
index 8ebc579..c4cdff8 100644
--- a/recognition/kcc.m
+++ b/recognition/kcc.m
@@ -1,3 +1,19 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
+
function [response, output] = kcc(test, correlator)
% Calculating the response
% Copyright Wang Chen, Nanyang Technoglogical University
diff --git a/recognition/kcc_train.m b/recognition/kcc_train.m
index 9d98ff7..3de51bf 100644
--- a/recognition/kcc_train.m
+++ b/recognition/kcc_train.m
@@ -1,3 +1,20 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
+
+
function correlator = kcc_train(sample, lambda, sigma)
% Training the correlator based on one sample
% Copyright Wang Chen, Nanyang Technoglogical University
diff --git a/recognition/run_me.m b/recognition/run_me.m
index 754288a..2a941ec 100644
--- a/recognition/run_me.m
+++ b/recognition/run_me.m
@@ -1,3 +1,18 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
data_conversion; % convert database to compatible format
diff --git a/recognition/show_example.m b/recognition/show_example.m
index 9f8331c..2564f50 100644
--- a/recognition/show_example.m
+++ b/recognition/show_example.m
@@ -1,3 +1,20 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
+
+
load('data.mat');
%% show
sequence = 100:200;
diff --git a/recognition/show_results.m b/recognition/show_results.m
index 26af7c0..8b5a2e1 100644
--- a/recognition/show_results.m
+++ b/recognition/show_results.m
@@ -1,3 +1,20 @@
+% KCC: Kernel Cross-Correlator
+% Activity Recognition Using KCC
+%
+% Copyright (C) 2017 Wang Chen wang.chen@zoho.com
+% Nanyang Technological University
+% This program 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.
+% This program 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 this program. If not, see .
+
+
function [accuracy_kcc, accuracy_dtw] = show_results(filename)
addpath('matrix2latex')
if nargin < 1