Added some debug to help checking if events are fireing properly
Fixed a bug where the amount of items in an inventory could be
misreported.