Inventory system debugged completely