added comments for the server library interface
added public and private keywords to socket class