Add documentation, use buffers instead of arbitrarily encoded strings

Signed-off-by: Eli Skeggs <skeggse@gmail.com>
Remove Discovery.eachNode, not useful as nodes are exposed

Signed-off-by: Eli Skeggs <skeggse@gmail.com>