several bug fixes for R > 3.1

 - name “Module” caused trouble
 - S4 classes now initialized with new(“…”)
 - documentation updated with roxygen2
library statements added

for easier code copying