Add inline comments where necessary and update the existing ones.
Add inline comments where necessary and update the existing ones.