STABLE: clean the comments and add event read and write in client struct