Ignore folders and files from "R CMD BUILD|check"
Fix .onLoad function (hack)

Apparently requiring methods and then calling methods::setRefClass
within the .onLoad function causes reference classes to start working.

The require statement is hidden in a string to avoid a warning in "R CMD check"