reg_read and reg_write now use nbytes params to allow multiple byte register access

reg_read and reg_write now use nbytes params to allow multiple byte register access