changes to R docs (corrected examples other minor maintain)