Refactor how update_quality iterates on each item, now it's more easy to maintain and add new type of items. Added a how-to comment at the top.
Fix some typos