Prepare for CRAN release

This ensures that the package passes R CMD check on release and r-devel on windows, mac and ubuntu linux (travis). Each change is in a clearly isolated commit. The ones that might need a little look are:

* 9824317 add package docs
* 4e8da23 import rather than depend on methods