implemented getInventory service call
fixed distance computation in getInventory request