Big Big refactoring,

skadi.h :

add the ifndef to prevent multiple inclusion

new definition of the api

skadi.c

add an internal state and use it, new definition of the api