Fixed the problems with usAddItem and usTakeItem

This resolves #12.