added network interfaces list for MAC address acquirement
code refactoring
added getOpenKey function