Renamed a variable, added some documentation.