move return out of with block
add comments
use the correct number of digits when displaying MAC IDs.
update display code. gracefully display socket errors