Added comments to the server side code