fixed error people were having with the R. stuff. For future notice, do not inlcude the R. library because it will think to use another R. class instead of the one we have