Improvements/Bugfix of the MATLAB interface

Also added a patch for EEGLAB integration