Cleanup. Added documentation for client.