added api for inventory -- closes #13