update some comments
Add a unittest for update_inventory (added get_inventory to make this possible)