Fix documentation.

Also removed an unused variable.