fixed struct traversal in matrix encode/decode

this prevented
can now start transplant from anywhere

the transplant directory is automatically added to the Matlab path