Cleaned up example and adjusted R base path for Mac OSX.