Converted source code to use wfdb-swig-matlab. Still debugging