Added documentation around ProfilingPanel and problems with the middlware.

Closes #497