Small changes to JAR3D Matlab