Added comments to the methods of the server.