 Code borrowed from some of the tutorials at https://www.arduino.cc/en/Tutorial/HomePage
 */
 
-#include <arduino.h>
-#include <wire.h>
+#include <Arduino.h>
+#include <Wire.h>
 
-const byte frontLED 1; //digital pin 1 (PWM) - Output
-const byte backLED  4; //digital pin 4 (PWM) - Output
-const byte frontSwitch 3; //digital pin 3 - Input
-const byte backSwitch 5; //digital pin 5 - Input
-const byte slaveAddress 8;
+const byte frontLED = 1; //digital pin 1 (PWM) - Output
+const byte backLED = 4; //digital pin 4 (PWM) - Output
+const byte frontSwitch = 3; //digital pin 3 - Input
+const byte backSwitch = 5; //digital pin 5 - Input
+int slaveAddress = 8;
 //SDA = pin D0
 //SCL = pin D2
 

    if (frontReading!= frontButtonState){
      frontButtonState = frontReading;
    }
    if (backReading!= backButtonState){
      backButtonState = backReading;
    }

  digitalWrite(backSwitch, HIGH); //turn on internal pullup resistor
  ledOFF(frontLED);
  ledOFF(backLED);
  Wire.begin();
  Wire.onReceive(receiveEvent);
}

void loop() {
