Text this: Generalized functionals of Brownian motion and their applications