Rewrote the code to log ping time

Monitors average time in ping
parameterized the ping inputs and messages
Added parameter section in README