Added one or two irrelevant comments. Changed ping method to have a print statement that prints just before server is actually pinged, to say that the server has been pinged.