optimisations

code has been :
* refactorized
* anglicized
* cleaned
* aired
I also removed uint and used only signed integers.

Code is now C89 and no more C99.