R additions

This adds the additional functions from the R library mentioned in issue #13 along with REG_USEBYTES.