Fix documentation of register()