modified inventory.cpp comments