update API with better examples, complete node.js versions