eventloop for ploting devices
R_ProcessEvents only in interactive mode
fix indentation issue
also remove Mac shared file
Merge branch 'Makefile'