added some new files
added lib file for client