Use of typedef struct instead of struct alone

I think it is better to use typedef with any struct definition, it clarify the code and delete any occasion of global variable declaration.