Added client.js and various documentation