added the update timer and accelerometer inner class

the update timer is set to update every 32 milliseconds, the
accelerometer is constatly changing i  think that this work here,
because the update timer has a handler that can pass the acc data from
the private inner class to the main ui thread without causing a
block......