Minor fixes

* Documentation improvements.
* Removed an unused variable.