[api] update methods to match statsd

- methods match statsd
- DRY buffer format
- doc
- remove unused code
update example

dont hit the lib until connected