Added getPing() in the API
Updated to version 3.1.2