feat - implemented pingAddresses

pingAddresses now pings all addresses and sends the message and name of
address to be logged
style - fixed indent issue

empty else caused error. Also removed print
style - fixed syntax error

While to while
style - removed space from addresses file
feat - implemented log

wrote skeleton for new function for writing to file
feat - implemented writeToFile

function now write message to files. Also added newline to logMessage
feat - added time to logMessage