Changed hmc class to suit our use.
Accelerometer class is functionable.