Initial R files now in place

Initial files for R packaging are in place.
Comments! Lots of comments!

Added comments for R code. Modified R package files