Improve context handling

This is my first pull request. A few bug changes in the parsing classes, updated a few class references and paths, and added the testing class and MATLAB examples for the converter. The converter itself will be updated in the next push.