adding source for R and tweaked analyses