changed "metal" to "metalbar" for clarity
Added cleanupInventory to eliminate stacksize = 0 items