Added / edited comments for clarity