Added all the current MATLAB code