stability for custom inventories

- this should make cycling thru inventories more stable in online MP
- more Java docs