Made ping timeout configurable
Kept ping() with no params as a default timeout method with a 30 second timeout.