Re-document
Capitalize .R extension

This is to make roxygen happy on case-sensitive platforms
Add opts function for controlling options