Fixed issue where MATLAB would lock class definitions
Merge pull request #45 from cafarm/garbage-collection

Fixed issue where MATLAB would lock class definitions