Add comments. Externalize ping and ssh commands. Improved output
Improved version