Added few error codes and changes. Till this point implemented with threads in clients. After this trying to remove thread part from clients