cleaned up model/inventory.php a bit
inventory add action