added data export (in .mat format) for the python scripts for debugging purposes