inventory bugfix. updated docs.