Improve memory reset by using memset()
Closes #6 by adding gyroscopic detection !
Cleaning code
Adding comments