Wrote Rd docs
Improved Rd docs