refactored accelerometer & got rid of some errors.