Added comments.
Store and reuse the nb of ping submited in cookies.
Don't be as verbose by default.