Renamed variables.
Removed unnecessary imports.
Updated documentation.