The only suggestion that I have is to do some smoothing of the values you get from the accelerometer. The movement can be a bit jerky.