ADXL345 sette

Updated code with less bugs