restored slaveArduino code to functionality after some more debugging