Accel improvments

A new function was created to average samples when reading values