Refactor - Change name of the logAll function to output
Refactor - Let the invocation of wifi commands be done through the main
Refactor - Point free style