Updated plugin; created InventoryAPI.java

Updated various plugin features, created a new api file for handling
most of the inventory-related methods and functions.