Remove c++-11 syntax code
Adds a mutex for the dataCache

...and actually inserts the data that comes from matlab space instead of dummy data.
Data writing now works!