Rcppheaderonly

requiring Rcpp 0.10.6.2 so that you get the last fix that meant undoing Rmath macros early enough. 

I've also changed functions so that they use attributes (`[[Rcpp::export]]`)