-updated code to generate R plots
-fixed some performance tests