Comments

Add comments to clarify code in entry.php and updateInventory.php