updates to setup for some ubuntu fixes with paths for R;  a lot of tweaking