updated client

added client funcionality and java documentation