#16 added tests and fixed circular buffer. Also improved general speed of the accelerometer plot.