Final update to inventory.cpp

This SHOULD be the final update to the inventory file; everything is working properly and is ready for integration.