add COM interface to communicate with matlab

now matlab runs fast enough