remove dependency on ts-java
cleaning up Matlab