fixed issues with MATLAB compatibility (' instead of ", etc.)