issue #24 code optimization, formatting for WiFiDirectBroadcastReceiver