Fixed a bug with matrix indexing.
Added example input MATLAB code to test most of the translation capabilities.