Attempting to restore build capability

Wholescale replacement of pivotalMC.r
Nasty bug fixed with whole scale file replacements

I had a bug in revision to getPPP.r in that curly brace did not close
the else block for dataframe evaluation for x argument.  This was
resulting in build errors pointing to other r files.  Hence pivotalMC.R
was played with