add Rcpp.test and actually added fixes from before
Merge pull request #4 from Daniel306/master

add Rcpp.test and actually added fixes from before