api.digipal.js added comments to functions