Refactor, add usage notes.

Do not exit with error code when sending a mail notification for failed pings
since this will confuse cron.