Adds in Eric's inventory code
Corrected some reference issues