Add Travis and Appveyor testing
Import sg from methods, to satisfy the check
Fix docs typo
Do not run tests on CRAN