added client-side code

*todo : readme file needs update about client-side functions