Added -l option to view by MAC address (LAN only)

Also refactored program if statements, and a -d debugging output option.