fixed bug with multithreading
rewrite lost ds_meta_get mex
fixed matlab's bug with read from offset