Fix getListings code. Fix variable binding in getInventory. Add sample code