R: Improved documentation