added Inventory logic for Product Types. Cleaned up redundant code