Adding Client Code

Adding client side code, was missing from initial commit