Implemented InventoryClickListener. Fixed several small bugs.