Updated documentation a bit. Removed unused variable.