added javadoc to Inventory