Add a -spec to ping/2

added a -spec() to the ping/2 function