Updates to R files, fixed error by removing namespace file