Rename .hpp to .h to avoid R CMD check warning
Also export C++ interfaces