some formatting updates, and some better error handling for client.go
add some simple examples for basic and multi publish