Fixes for socket

test.js should now work fine. Remember to set your package.json file
with the MAC address of your socket!