Changed documentation.
Removed unused vars.