edits to R docs - general cleaup for spelling, syntax, and similar.