corrected accelerometer and gyroscope device files, added initialization for accelerometer