Brownian motion in inhomogeneous media and with interacting particles