Merge pull request #3 from Toops/master

synchro from upstream
comments + safety check (on slot to avoid ArrayIndexOutOfBounds / on
inventory to avoid NullPointer)
Merge pull request #16 from wisthy/master

basic work on TSInventoryLogic