added comments and logging to OrderService