Documentation changes and renamed variable for clarity.