Added update inventory task

currently, not working perfectly...