what is inventory why is it managed how is it managed