Add default hardware address for the optical port; improve app code