Added some client functionality

Also added documentation and example to readme.