Add missing rename

Added missing rename and some more clarification in the code