get the mac address from the user registers, fixes #7, and fix a few more warnings