updated demo file
Only for Mac OS (tested with OS 10.9.2 and MATLAB 2013a)