Removes unused variable.
Adds documentation.