clean up comments and print statements in net_ping method