fix all the doc errors and warnings. close #99
add some Rd files