add inventory functions
add inventory functions
re factory clearInventory
add saveGroup function