added comments to server.cpp