added comments making note of how code workks