cs fix
Implement callback function
The method now takes a callback function
Remove console.log statement
Adapt to new dnode interface