fixes typehint for setAuthorizeController
improves documentation for addStorage function