Moved motion detect algorithm to FreeIMU library. Added simple moving average library