add more comments to service.js