Huh?
//Turning on the ADXL345
Wire.write(DEVICE, 0x2D, 0);
Wire.write(DEVICE, 0x2D, 16);
Wire.write(DEVICE, 0x2D, 8);
There should be a beginTransmission and endTransmission there. Plus you don't put the device number in the Wire.write.