Added commenting to the header file
moved MATLAB codes