Added some documentation and methods to the main client.